Comments (1)
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 }
from coogleiot.
Related Issues (15)
- Example .h file missing! HOT 3
- Basic CoogleIoT example crashes device? HOT 2
- GetTimestampAsString return month is off by 1 HOT 1
- Exception (28): after configuration HOT 13
- MQTT subscribtions are cleared on reconnect
- Linking problems with DNSServer with arduino-mk
- Custom items
- WifiClientPrint.h - wrong file name HOT 1
- CoogleIOT issues with newer esp8266 Arduino cores (3.0.x)
- ESP32 support?
- GARAGE_DOOR_ACTION_TOPIC not defined in example HOT 1
- configuration when wifi config is invalid HOT 2
- Constant reboot HOT 7
- Failed to connect to MQTT Server! HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coogleiot.