File tree 2 files changed +2
-2
lines changed
examples/protocols/aws_iot
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -271,7 +271,7 @@ void aws_iot_task(void *param) {
271
271
paramsQOS1 .payload = (void * ) cPayload ;
272
272
paramsQOS1 .isRetained = 0 ;
273
273
274
- while (( NETWORK_ATTEMPTING_RECONNECT == rc || NETWORK_RECONNECTED == rc || SUCCESS == rc ) ) {
274
+ while (1 ) {
275
275
276
276
//Max time the yield function will wait for read messages
277
277
rc = aws_iot_mqtt_yield (& client , 100 );
Original file line number Diff line number Diff line change @@ -289,7 +289,7 @@ void aws_iot_task(void *param) {
289
289
temperature = STARTING_ROOMTEMPERATURE ;
290
290
291
291
// loop and publish a change in temperature
292
- while (NETWORK_ATTEMPTING_RECONNECT == rc || NETWORK_RECONNECTED == rc || SUCCESS == rc ) {
292
+ while (1 ) {
293
293
rc = aws_iot_shadow_yield (& mqttClient , 200 );
294
294
if (NETWORK_ATTEMPTING_RECONNECT == rc || shadowUpdateInProgress ) {
295
295
rc = aws_iot_shadow_yield (& mqttClient , 1000 );
You can’t perform that action at this time.
0 commit comments