Web Socket to get device

  • 274 Views
  • Last Post 03 March 2016
partyk1d24 posted this 03 March 2016

I can connect to the WS locally and I can get the device list. However, when I try to get an individual device using the following message...

[code]{
password: "Password",
commandData: {
deviceId: "0a9fd97c-991b-4c55-ac95-6d3185b5486e"
},
commandType: "getDevice"
}[/code]


I do not get the device I would expect. Is there a reference for available Web Socket commands?

Thank you

Jackie

rscott posted this 03 March 2016

I can connect to the WS locally and I can get the device list. However, when I try to get an individual device using the following message...

[code]{
password: "Password",
commandData: {
deviceId: "0a9fd97c-991b-4c55-ac95-6d3185b5486e"
},
commandType: "getDevice"
}[/code]


I do not get the device I would expect. Is there a reference for available Web Socket commands?

Thank you

Jackie


Hey Jackie -

There isn't a "getDevice" - but there's a "getDevices" command. We haven't officially made the socket client available for use (go ahead and use it though!), so there's no published spec. Though do be aware that we'll be adding some security to it shortly, so it'll change. If you'd like, contact me personally and we can discuss this so that it doesn't mess up what you've already accomplished.

Ryan

Close