Explorar el Código

change parea_mqtt mqtt info

nana_sen hace 1 año
padre
commit
5128382a1d
Se han modificado 2 ficheros con 10 adiciones y 13 borrados
  1. 0 9
      catch/api/controller/Api.php
  2. 10 4
      task_script/RL4RSSI_PAREA_MQTT.php

+ 0 - 9
catch/api/controller/Api.php

@@ -864,12 +864,6 @@ class Api extends CatchController
     public function compAndPush($info, $config ){
         //标签多,数据多时候,判断完成后放入redis,异步推送,当前暂时直接推
 
-        // $config  = $ues_redis->hget("anbang_four_wire", $info["mac"]);
-        
-        //{"front_in":44,"front_out":44,"behind_in":50,"behind_out":50,"left_in":55,"left_out":55,"right_out":44,"right_out":44}
-
-        
-
         $avg = $info['avg'];
         $status = $info['status'];
 
@@ -934,9 +928,6 @@ class Api extends CatchController
         return $info;
     }
 
-    // $url="http://47.114.185.186:8115/api/accessReport";
-    // $url_res= curl_http_post(json_encode($url_data),$url,false);
-    // debug_log("InAndOUT","远程返回结果".$url_res);
 
     public function test(){
         try{

+ 10 - 4
task_script/RL4RSSI_PAREA_MQTT.php

@@ -300,11 +300,17 @@ function rcInfoMsg($topic, $msg)
 }
 function loop()
 {
-    $server   = 'develop.rltest.cn';
+    // $server   = 'develop.rltest.cn';
+    // $port     = 1883;
+    // $clientId = 'mqttx_testparea9659';
+    // $username = 'rl517';
+    // $password = "rlian2022";
+
+    $server   = '127.0.0.1';
     $port     = 1883;
-    $clientId = 'mqttx_testparea9659';
-    $username = 'rl517';
-    $password = "rlian2022";
+    $clientId = 'mqttx_testparea'.rand(1234, 99999);
+    $username = 'rl0606';
+    $password = "rlian2023";
     $clean_session = true;
 
     $connectionSettings  = new ConnectionSettings();