Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Create a client instance
- client = new Paho.MQTT.Client([hostname which I got from Kil Cloud], [port which I got from Kil Cloud], "clientId");
- // set callback handlers
- client.onConnectionLost = onConnectionLost;
- client.onMessageArrived = onMessageArrived;
- // connect the client
- // client.connect({onSuccess:onConnect});
- client.connect({
- onSuccess:onConnect,
- userName:[username which I got from Kil Cloud],
- password:[password which I got from Kil Cloud]
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement