I have a Gateway (Photon) receiving data from three Bluz. The data is then sent via MQTT to Thingsspeak.
I noticed that there is often multiple disconnects to the MQTT server. In some cases, the Photon starts flashing red and then restarts.
When I uncommented the MQTT code, the system works fine (except for 1-second disconnect/reconnect sequence for the Photon).
I would appreciate any input on the following two questions:
In the case of no MQTT, how can i prevent the intermittent 1-second disconnect/reconnect sequence for the Photon.
How can I make the Gateway code and MQTT co-exist?