Advertisement
Guest User

Untitled

a guest
Apr 24th, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. // Create a client instance
  2. client = new Paho.MQTT.Client([hostname which I got from Kil Cloud], [port which I got from Kil Cloud], "clientId");
  3.  
  4. // set callback handlers
  5. client.onConnectionLost = onConnectionLost;
  6. client.onMessageArrived = onMessageArrived;
  7.  
  8. // connect the client
  9. // client.connect({onSuccess:onConnect});
  10. client.connect({
  11. onSuccess:onConnect,
  12. userName:[username which I got from Kil Cloud],
  13. password:[password which I got from Kil Cloud]
  14. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement