|Re: [paho-dev] HTTP - MQTT bridge|
you shouldn't need to do anything different for a REST application in particular. You might need to be aware of when client objects are created and destroyed, though.
If a client object is created, connect and subscribes and then is destroyed, if you want it to receive messages for those subscriptions when it is recreated and reconnects, you must:
1) connect non-cleansession (otherwise the subscriptions are deleted on disconnect)
2) make sure the client persistence is turned on and pointing to the same location so that client state is restored when it is recreated
On 03/13/2014 09:47 AM, Bharath C wrote:
-- Ian Craggs icraggs@xxxxxxxxxx IBM United Kingdom Comitter on Paho, Mosquitto
Back to the top