Page 1 of 1
How to Disconnect ? from bluemix MQTT in tutorial ?
Posted: 06:16, 16 Feb 2016
by kiranshashiny
I am going thru the code and found it useful.
https://evothings.com/evothings-does-mqtt-with-bluemix/Q : How
do I disconnect from the Bluemix broker ?
I see a app.onConnect(),
app.initialize()
app.onReady (), and so on..
but I did not see a disconnect().
Re: How to Disconnect ? from bluemix MQTT in tutorial ?
Posted: 09:15, 16 Feb 2016
by gokr
The Paho client has disconnect() so you can easily expose that function in our "app":
Code: Select all
app.disconnect = function() {
app.client.disconnect();
console.log("Disconnected ");
}
Reference docs for the Paho js library is here:
http://www.eclipse.org/paho/files/jsdoc ... lient.htmlregards, Göran
Re: How to Disconnect ? from bluemix MQTT in tutorial ?
Posted: 09:31, 16 Feb 2016
by kiranshashiny
Thanks Goran,
Your suggestion and the link really helped.
Shashi
Re: How to Disconnect ? from bluemix MQTT in tutorial ?
Posted: 12:33, 16 Feb 2016
by kiranshashiny
Please close this issue.
Re: How to Disconnect ? from bluemix MQTT in tutorial ?
Posted: 15:53, 20 Feb 2016
by kiranshashiny
I used your code to control DC motors and LEDs from the app using Evothings Workbench and connected to IBM BLuemix .
[img][img][img][/img][/img][/img]