I have been experimenting with the MQTT library, helped by a Raspberry Pi running Mosquitto.
This is a general MQTT issue rather than a specific B4J library question but I would like confirmation from someone with more experience with the protocol.
It seems like any subscription to a particular topic expires when you disconnect from the server. This is actually great news, I thought the subscriptions were persistent (tied to your client ID), even though I have not found anything about it in the online documentation, one way or the other. That would have been an issue since there is no way to poll the server to find out what you are subscribed to.
That means you have to resubscribe each time you connect. In the scheme of things, it's much better than my original assumption.
TIA
This is a general MQTT issue rather than a specific B4J library question but I would like confirmation from someone with more experience with the protocol.
It seems like any subscription to a particular topic expires when you disconnect from the server. This is actually great news, I thought the subscriptions were persistent (tied to your client ID), even though I have not found anything about it in the online documentation, one way or the other. That would have been an issue since there is no way to poll the server to find out what you are subscribed to.
That means you have to resubscribe each time you connect. In the scheme of things, it's much better than my original assumption.
TIA