We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee202e7 commit 84d60c4Copy full SHA for 84d60c4
www/post.php
@@ -7,6 +7,7 @@
7
$mqtt_host = "localhost";
8
}
9
10
+use Bluerhinos\phpMQTT;
11
$mqtt = new phpMQTT($mqtt_host, 1883, "barclient".rand());
12
if($mqtt->connect()){
13
$mqtt->publish("hack42bar/input/".$_REQUEST['topic'],$_REQUEST['msg'],1);
0 commit comments