Just saw this issue again today on a Photon running 4.7.
Hitting the /devices
endpoint on the API I get:
...other devices},
{
"id": "380XXXXXXXXXXXXXXXXX738",
"name": "office_neo_ph_013",
"last_app": null,
"last_ip_address": "70.81.163.236",
"last_heard": "2015-12-21T23:06:26.382Z",
"product_id": 6,
"connected": false,
"status": "normal"
},
{ other devices...
But hitting /devices/380XXXXXXXXXXXXXXXXX738
I get
{
"id": "380XXXXXXXXXXXXXXXXX738",
"name": "office_neo_ph_013",
"connected": true,
"variables": {
"version": "string",
"system": "string",
"starttime": "string",
"localtime": "string",
"schedulelist": "string",
"lastsync": "string",
"boxorder": "int32",
"boxtotal": "int32",
"rssi": "int32",
"ssid": "string"
},
"functions": [
"transmit",
"setschedule",
"setvariable"
],
"cc3000_patch_version": "wl0: Nov 7 2014 16:03:45 version 5.90.230.12 FWID 01-4310973",
"product_id": 6,
"last_heard": "2015-12-22T16:46:07.260Z",
"status": "normal"
}
And both function calls and variables reads are working fine. I assumes the /devices
endpoint keeps track of device status via online/offline events (and missed one?), while the device/DEVICE_ID
endpoint hit the device directly…
Thoughts?