Compare commits

..

No commits in common. '02f992a97ba64dbbb5e9a99d2e6efc8dfe53075b' and '207c5e67ab05d5712cb67a9a39a65310c3906095' have entirely different histories.

@ -179,8 +179,6 @@ char* MQTTFormat_toClientString(char* strbuf, int32_t strbuflen, uint8_t* buf, i
break;
}
(void) strindex;
return strbuf;
}
@ -262,7 +260,6 @@ char* MQTTFormat_toServerString(char* strbuf, int32_t strbuflen, uint8_t* buf, i
break;
}
(void) strindex;
strbuf[strbuflen] = '\0';
return strbuf;
}

@ -56,11 +56,11 @@ void mqtt_pub(Client* mqtt_client, char * mqtt_topic, char * mqtt_msg, int mqtt_
{
printf(" - ERROR\r\n");
//Reboot device after 20 continuous errors (~ 20sec)
//while(1);
if(mqtt_err_cnt++ > 20)
{
printf("Connection with MQTT Broker was lost!!\r\nReboot the board..\r\n");
while(1);
}
//if(mqtt_err_cnt++ > 20)
//{
// printf("Connection with MQTT Broker was lost!!\r\nReboot the board..\r\n");
// while(1);
//}
}
}