Skip to content

Commit 84d60c4

Browse files
committed
upgrade for post.php as well
1 parent ee202e7 commit 84d60c4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

www/post.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
$mqtt_host = "localhost";
88
}
99

10+
use Bluerhinos\phpMQTT;
1011
$mqtt = new phpMQTT($mqtt_host, 1883, "barclient".rand());
1112
if($mqtt->connect()){
1213
$mqtt->publish("hack42bar/input/".$_REQUEST['topic'],$_REQUEST['msg'],1);

0 commit comments

Comments
 (0)