|
@@ -92,6 +92,7 @@ $ws_worker->onWorkerStart = function($ws_worker)
|
|
|
$temp = $devList;
|
|
|
if (!empty($temp)) {
|
|
|
foreach ($temp as $k => $v) {
|
|
|
+ var_dump($v);
|
|
|
$client = $v['client'];
|
|
|
$lamp = $websocketDB->query("select manu,address,id from lampinfo where id = ".$v['lamp_id']);
|
|
|
if (!empty($lamp) && !empty($lamp[0]['id'])) {
|
|
@@ -183,6 +184,7 @@ $ws_worker->onMessage = function($connection, $data)
|
|
|
|
|
|
if ($res && isset($res['type'])) {
|
|
|
if ($res['type'] == 'updateDev' && isset($res['id']) && !empty($res['id'])){
|
|
|
+ var_dump($res);
|
|
|
$arr = explode(',',$res['id']);
|
|
|
if (!empty($arr)) {
|
|
|
foreach ($arr as $key) {
|