mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-14 14:08:19 +08:00
修复LED控制无效的问题
This commit is contained in:
@@ -245,6 +245,8 @@ void MqttClientThread(mico_thread_arg_t arg)
|
||||
|
||||
mqtt_log("MQTT client connect success!");
|
||||
|
||||
UserLedSet(user_config->power_led_enabled);
|
||||
|
||||
/* 4. mqtt client subscribe */
|
||||
rc = MQTTSubscribe(&c, topic_set, QOS0, MessageArrived);
|
||||
require_noerr_string(rc, MQTT_reconnect, "ERROR: MQTT client subscribe err.");
|
||||
|
||||
Reference in New Issue
Block a user