Explorar o código

change mn mqtt host info

nana_sen hai 1 ano
pai
achega
6f947c3b8b
Modificáronse 1 ficheiros con 10 adicións e 4 borrados
  1. 10 4
      task_script/MN_RL4RSSI_MQTT_CLIENT.php

+ 10 - 4
task_script/MN_RL4RSSI_MQTT_CLIENT.php

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