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