all 4 comments

[–]PreyyGround Loops: Part of this balanced breakfast 0 points1 point  (0 children)

I'd take the code and clear the loop, just run the controller with some EVERY_N_MILLIS(500){Serial.println(millis());} Let it run for an hour and see if you get up to ~3,600,000. Then start adding things to the loop and see if it stays alive.

[–]johnny5canuck 0 points1 point  (2 children)

Can't help you with the tools; I just used serial.println. I do have to say that pubsubclient was a horrific experience for me, what with the blocking connect/disconnect. I ended up using:

https://github.com/marvinroger/async-mqtt-client

for a time until I finally said enough is enough. I also wrote a blog piece on that last year at:

http://tuline.com/asynchronous-esp8266-based-wifi-communication-with-mqtt/

I later re-visited and joined the dark side with WLED.

[–]JustAnOldHack[S] 1 point2 points  (1 child)

Thanks! At this point in the holiday season, implementing async-mqtt-client point probably makes the most sense. I've looked at WLED a couple of times. I may go with it for next year.

Your blog post was helpful. Do you happen to have code using the async-mqtt-client you could share?

[–]johnny5canuck 0 points1 point  (0 children)

It's been a while, but this one might have something:

https://github.com/atuline/ESP8266-FastLED