tongshanglei 1 年之前
父節點
當前提交
b4202c34ee
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      task_script/LIVESTOCK_MQTT_PUBLISH.php

+ 2 - 0
task_script/LIVESTOCK_MQTT_PUBLISH.php

@@ -89,6 +89,7 @@ function sendConfig($topic,$config)
         $config,
         0
     );
+    echo 'publish end'.PHP_EOL;
     $matt->loop(true,true);
     $mqtt->disconnect();
     return $res;
@@ -117,6 +118,7 @@ while (1) {
         continue;
     }
     $data=json_decode($jsonData,true);
+    var_dump($data);
     $topic="earings/".$data['device_id']."/coludControl";
     $config=[];
     if($data['type']=='exe'){