I’ve been trying to set up my board to send MQTT messages for a few days now, without success. The connect to the broker seems to work somehow, but somehow not. When I disconnect, I see the last-will message, but when I try to send a message, I just get an error message (“+CME ERROR: operation not allowed”). In the meantime, is there perhaps a working example somewhere.
I can’t find any documentation for the API of the SPARKFUN_SARA-R5 library. So I first tried to connect to my MQTT broker with the Asset Tracker Update Tool and m-center via AT commands. But here I have the described problems.
From SPARKFUN there seems to be no example for the usage of the Asset Tracker Carrierboard with MQTT. What I find a bit strange, because probably this is the preferred communication method of everyone.