From dbb40125f7f6186f659227ef4aa3ef6fa54fac3c Mon Sep 17 00:00:00 2001 From: Zip <76966589@qq.com> Date: Wed, 13 Mar 2019 16:09:33 +0800 Subject: [PATCH] =?UTF-8?q?add:MQTT=E8=BF=9E=E6=8E=A5=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E6=97=B6,led=E6=AF=8F5s=E9=97=AA=E7=83=81=E4=B8=80=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TC1/user_mqtt_client.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/TC1/user_mqtt_client.c b/TC1/user_mqtt_client.c index 9b651bd..a16a56f 100644 --- a/TC1/user_mqtt_client.c +++ b/TC1/user_mqtt_client.c @@ -342,6 +342,10 @@ void mqtt_client_thread( mico_thread_arg_t arg ) MQTT_reconnect: mqtt_log("Disconnect MQTT client, and reconnect after 5s, reason: mqtt_rc = %d, err = %d", rc, err ); mqtt_client_release( &c, &n ); + + user_led_set( -1 ); + mico_rtos_thread_msleep(100); + user_led_set( -1 ); mico_rtos_thread_sleep( 5 ); goto MQTT_start;