devicehive-java-server icon indicating copy to clipboard operation
devicehive-java-server copied to clipboard

Different structure of the "parameters"

Open edubovik opened this issue 10 years ago • 0 comments

#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"
}

/device/{deviceGuid}/command

{
    "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
  }

edubovik avatar Nov 16 '15 12:11 edubovik