2 Commity 5659772778 ... b1611f3f08

Autor SHA1 Wiadomość Data
  tongshanglei b1611f3f08 Merge branch 'master' of http://gogs.renlianiot.com:4000/zmcoding/station-test-api 1 rok temu
  tongshanglei 7e68a35d3f 修改 1 rok temu

+ 7 - 7
task_script/ESP32_MQTT_CLIENT.php

@@ -4,14 +4,14 @@ use \PhpMqtt\Client\MqttClient;
 use \PhpMqtt\Client\ConnectionSettings;
 use think\facade\Cache;
 date_default_timezone_set("PRC");
-// define('HOST', 'r-bp1eebab79320044pd.redis.rds.aliyuncs.com');
-// define('PORT', '6379');
-// define('PASSWORD', '7e2b5c91e438be3c!');
-// define('DATABASE', 4);
-define('HOST', '127.0.0.1');
+define('HOST', 'r-bp1eebab79320044pd.redis.rds.aliyuncs.com');
 define('PORT', '6379');
-define('PASSWORD', '123456');
-define('DATABASE', 2);
+define('PASSWORD', '7e2b5c91e438be3c!');
+define('DATABASE', 4);
+// define('HOST', '127.0.0.1');
+// define('PORT', '6379');
+// define('PASSWORD', '123456');
+// define('DATABASE', 2);
 
 function app_redis()
 {

+ 7 - 7
task_script/ESP32_MQTT_SEND.php

@@ -4,14 +4,14 @@ use \PhpMqtt\Client\MqttClient;
 use \PhpMqtt\Client\ConnectionSettings;
 use think\facade\Cache;
 date_default_timezone_set("PRC");
-define('HOST', '127.0.0.1');
-define('PORT', '6379');
-define('PASSWORD', '123456');
-define('DATABASE', 2);
-// define('HOST', 'r-bp1eebab79320044pd.redis.rds.aliyuncs.com');
+// define('HOST', '127.0.0.1');
 // define('PORT', '6379');
-// define('PASSWORD', '7e2b5c91e438be3c!');
-// define('DATABASE', 4);
+// define('PASSWORD', '123456');
+// define('DATABASE', 2);
+define('HOST', 'r-bp1eebab79320044pd.redis.rds.aliyuncs.com');
+define('PORT', '6379');
+define('PASSWORD', '7e2b5c91e438be3c!');
+define('DATABASE', 4);
 
 use \think\facade\Db;
 function app_redis()