devicehive-java-server
devicehive-java-server copied to clipboard
Different structure of the "parameters"
#136 Different structure examples:
/device/{deviceGuid}/command/poll
{
"notification": {
"id": 2044623717,
"notification": "$device-update",
"deviceGuid": "first_ESP",
"timestamp": "2015-11-15T21:22:26.508",
"parameters": {
"id": "first_ESP",
"name": "first_ESP",
"status": "Online",
"data": null,
"network": {
"id": 274,
"key": "P361MWQ08GNKDJL5",
"name": "Network WJNAZP for ([email protected])",
"description": "Playground Network"
},
"deviceClass": {
"id": 16,
"name": "ESP Class",
"version": "0.4",
"isPermanent": false,
"offlineTimeout": 120,
"data": null,
"equipment": []
},
"isBlocked": null
}
},
"deviceGuid": "first_ESP"
}
{
"id": 2100381300,
"command": "blablalb.sadasd",
"timestamp": "2015-11-10T15:27:03.642",
"userId": 180,
"deviceGuid": "3d77f31c-bddd-443b-b11c-640946b0581z4123f",
"parameters": "adsdasda",
"lifetime": null,
"status": null,
"result": null
}