修复LED控制无效的问题

This commit is contained in:
Your Name
2025-03-11 20:03:03 +08:00
parent 5189e53e6d
commit a493b83c4e
4 changed files with 716 additions and 681 deletions

View File

@@ -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.");