Hi everyone.
I'm dabbling in using some of the modules, and was intrigued with the MQTT Module.
I've written some triggers so Mosaic can enqueue a trigger with Publishing a Topic and Payload as the Trigger Variables.
So I've tested that and got it to work, as well as a trigger that when connected it asks to subscribe to a topic, which I can use to parse.
So testing on the bench it works pretty well.
The problem I'm running into though is how to keep the MQTT Socket connected. Once i leave and the Mosaic sits idle, it seems to disconnect, and doesn't seem to connect right away after a while.
What sort of cues or other actions should I try to implement to make sure the Mosaic, at least reconnects when a new message needs to be sent, or preferably to remain up the whole time and publish the MQTT Topic and Payload as soon as it gets a new one? That way if I send it a payload to a topic it is subscribed to, it will respond?
Also on a similar note, can anyone confirm that it's not possible to set a Last Will Message? I was hoping to use that feature, but that doesn't seem possible with the current MQTT Module.