Arduino Connectivity

Hi @meriksson (and anyone else reading and interested)

After writing up a tutorial today on how to convert from Arduino to Arduino MQTT sketches, I wanted to reach out and see if you could try following it when you have some free time. It should apply to your ESP8266 as well, although you’ll need the Cayenne MQTT ESP8266 library rather than the Arduino one I linked in that tutorial.

I think this would be a good option for you as we believe our MQTT connectivity to be more stable than the original Arduino connectivity, and it should be much more tolerant to the delay() statements in that code as it uses a push design rather than continuous polling which can be thrown off and cause disconnects with large delays.

I want to make myself available to you to assist with switching the code over or any other questions you might have about the difference in the two connectivities.