tongshanglei 1 year ago
parent
commit
00fdf758a2
1 changed files with 2 additions and 0 deletions
  1. 2 0
      task_script/LIVESTOCK_MQTT_PUBLISH.php

+ 2 - 0
task_script/LIVESTOCK_MQTT_PUBLISH.php

@@ -125,6 +125,8 @@ while (1) {
    
     $config_json=json_encode($config);
     var_dump($config_json);
+    echo 'topic:'.$topic.PHP_EOL;
+    echo 'config:'.$config_json.PHP_EOL;
     // $res=sendConfig($topic,$config_json);
     $res=$mqtt->publish(
         $topic,