Open flohoff opened 5 years ago
Hi, i guess this is broken - mqttClient can be zero - So calling mqttClient->connected() causes the above crash.
338 wifiFailuresCount = 0;
339
340 if(!mqttClient->connected()) {
341 yield();
342 if(!connectToMQTT()) {
343 mqttFailuresCount++;
344 }
345 }
346
347 if(mqttClientActive) {
348 mqttFailuresCount = 0;
349 yield();
With this fix it at least does not crash anymore. It comes up and falls back to config mode as there is no mqtt hostname:
340 if(mqttClient) {
341 if(!mqttClient->connected()) {
342 yield();
343 if(!connectToMQTT()) {
344 mqttFailuresCount++;
345 }
346 }
347
348 if(mqttClientActive) {
349 mqttFailuresCount = 0;
350 yield();
351 mqttClient->loop();
352 }
353 }
A stripped down garagedooropener crashes after first config via integrate AP. I set the MQTT port and after joining the WIFI the ESP Crashes:
Decoding the crash returns:
The line is
Which is interesting - As _client is a private object pointer in the PubSubClient Class it seems there is no PubSubClient object instantiated or the pointer is NULL.
And no there is not a valid MQTT endpoint configured and yes i have increased the MAX packet size in MQTT.
Flo