解决没网获取时间崩溃

This commit is contained in:
zogodo
2020-02-08 17:47:37 +08:00
parent e7276a5761
commit 1897b1c18a
3 changed files with 37 additions and 50 deletions

View File

@@ -318,8 +318,9 @@ void mqtt_client_thread(mico_thread_arg_t arg)
rc = NewNetwork(&n, MQTT_SERVER, MQTT_SERVER_PORT, ssl_settings);
if (rc == MQTT_SUCCESS) break;
mqtt_log("ERROR: MQTT network connection err=%d, reconnect after 3s...", rc);
//暂时去掉这个日志
//mqtt_log("ERROR: MQTT network connection err=%d, reconnect after 3s...", rc);
}
mqtt_log("MQTT network connection success!");