NickB1 / balboa-spa-mqtt-controller

Balboa Spa MQTT Controller on NodeMCU
MIT License
5 stars 3 forks source link

Getting a reboot / connection error #3

Open altontoth opened 3 years ago

altontoth commented 3 years ago

Getting the following ESP error. No concept of where I need to go to fit it. Thoughts?

Decoding stack results 0x40203a64: Adafruit_MQTT_Publish::publish(int) at .....\Arduino\libraries\Adafruit_MQTT_Library\Adafruit_MQTT.cpp line 904 0x4020183a: balboa_display_poll() at .....\balboa-spa-mqtt-controller-master\balboa-spa-mqtt-controller-master\balboa-spa-mqtt-controller/balboa-interface.ino line 485 0x40202348: loop() at .....\balboa-spa-mqtt-controller-master\balboa-spa-mqtt-controller-master\balboa-spa-mqtt-controller/balboa-spa-mqtt-controller.ino line 35 0x40205068: loop_wrapper() at .....Arduino15\packages\esp8266\hardware\esp8266\3.0.1\cores\esp8266\core_esp8266_main.cpp line 201

NickB1 commented 3 years ago

Hi,

I just tested the code with the latest version of the ESP8266 core (3.0.2) and the Adafruit MQTT library (2.4.2) and it seems to run without rebooting. Could you give this a try?

NickB1 commented 3 years ago

Also made a new commit, fixed some warnings coming up with the new ESP8266 core.

altontoth commented 3 years ago

Whatever was going on, I copied your code cleanup from today, and realized that I only had 3.0.1 installed on the ESP core. Was already running the latest AdafruitIO library. Seems to be no errors! Going to try plugging it back in to the hot tub tomorrow. Had a display freakout, and some other issues. But that was before I discovered the reboot loop. Hopefully I built your circuit correctly.

Just so you know, over on my fork I included an extra bit of data, to publish the desired temperature, to provide feedback back to the MQTT based interface. Are you running your own broker? Was there anything specific you needed to do to get it running? I'm not a big fan of 'cloud', so I am slowly building up an Ubuntu based OpenHab (+ other things) setup.

NickB1 commented 3 years ago

Ok great, let me know how it goes. It's not my best/cleanest work but it worked :D. Thanks for continuing work on the code. I'm indeed running my own Mosquitto broker next to OpenHAB (both running on a raspberry pi), setup is fairly easy.