mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-06-25 01:59:17 +08:00
fix(aws_iot): Fix aws_iot handshake failed and exit
This commit is contained in:
@ -289,7 +289,7 @@ void aws_iot_task(void *param) {
|
||||
temperature = STARTING_ROOMTEMPERATURE;
|
||||
|
||||
// loop and publish a change in temperature
|
||||
while(NETWORK_ATTEMPTING_RECONNECT == rc || NETWORK_RECONNECTED == rc || SUCCESS == rc) {
|
||||
while(1) {
|
||||
rc = aws_iot_shadow_yield(&mqttClient, 200);
|
||||
if(NETWORK_ATTEMPTING_RECONNECT == rc || shadowUpdateInProgress) {
|
||||
rc = aws_iot_shadow_yield(&mqttClient, 1000);
|
||||
|
Reference in New Issue
Block a user