Device Info - JSON

JSON Device Info documentation is describing Device Info JSON implementation.


JSON (JavaScript Object Notation) : is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate.


The whole Device Info message consisting of wrapper and payload MUST be valid JSON encoded with the UTF-8 (see RFC3629) character encoding.

Example

JSON representation of a Device Info.

{
    "v": "2.0",
    "t": "2019-01-04T11:25:40.000Z",
    "d": "123",
    "i": {
        "fwVersion": "1.0.2",
        "battery": 75, 
        "refresh" : [
            {
                "measurement": "location",
                "measurementRefresh": 10000,
                "communicationRefresh": 60000
            }
        ]
    },
    "customKey1": "value1",
    "customKey2": "value2"
}


Improve this page