MQTT on Boron Bricks the Device

Has anyone successfully connected to an MQTT broker from a Boron? I am using a new Boron with OS version 6.1.1, but each MQTT example I use bricks the Boron and I have to direct connect by USB and load an empty program to revive it. I have tried a number of MQTT libraries, but get the same results with each one.

Once the program loads, the Boron tries to connect to the cell network, then freezes. The LED goes black, and the device stops responding.

A non-function LED typically points to a power problem. Frozen firmware would present with a solid colour, but fully off is something else.
Does the device function when not attached to anything else and running Tinker?

1 Like

Yes, the Boron works normally and the cell connection works OK on other programs. I can set variables and run functions from the Console just fine.

Power might be the problem, though. I remember reading that for some applications, it may be necessary to attach the LiPo battery because of extra power needs from the cellular connection. I'll try that and report back.

Yes, it seems power related - the LED should never be off unless the device is sleeping.

I checked for power problems by changing the USB cord to the Particle one, and by adding a large LiPo battery. The Boron is still going dark and unresponsive with any MQTT library I use.

However, I found that it will still sometimes respond to a cloud programming download, even though the LED is dark.

Hey Keith!

I have successfully used MQTT on Borons. Mind you, I used DeviceOS 4.2.0, just because that was the latest at the time - nothing against 6.1.1 in particular.

This is the library I used:

Are you using the same one?
Best,