Multiprotocol Access Product Introduction QuickStart User Guide Development Guide
EDP TCP transparent transmission MQTT Modbus HTTP
FAQ

Basic Message Format

Rule Engine defines different fixed basic message formats for different message sources, providing a basis for rule-based SQL processing.

Device Data Point Message

Device data point message is formatted as follows:

Parameter Property Type Description
sysProperty messageType string Message type: fixed as deviceDatapoint
productId string Product ID
appProperty deviceId string Device ID
dataTimestamp int A timestamp that specifies when the device data point occurred, in milliseconds, which can be carried as defined by user when uploaded to the device.
datastream string Data stream name
body object/string/... Data point message details

Json Example 1: Json Data

{
    "sysProperty": {
        "messageType": "deviceDatapoint",
        "productId": "90273",
    },
    "appProperty":{
        "deviceId": "102839",
        "dataTimestamp": 15980987429000,
        "datastream":"weather"
    },
    "body":{
        "temperature": 30,
        "humidity": "47%"
    }
}

Json Example 2: Numeric Data

{
    "sysProperty": {
        "messageType": "deviceDatapoint",
        "productId": "90273",
    },
    "appProperty":{
        "deviceId": "102839",
        "dataTimestamp": 15980987429000,
        "datastream":"temperature"
    },
    "body": 10
}

Json Example 3: String

{
    "sysProperty": {
        "messageType": "deviceDatapoint",
        "productId": "90273",
    },
    "appProperty":{
        "deviceId": "102839",
        "dataTimestamp": 15980987429000,
        "datastream":"weather"
    },
    "body":"sunny with wind"
}

Json Example 4: Binary Data

Note:

When data are presented in binary format, body data represent an index number for binary data. For example, user can receive the data from an API using this index number.

{
    "sysProperty": {
        "messageType": "deviceDatapoint",
        "productId": "90273",
    },
    "appProperty":{
        "deviceId": "102839",
        "dataTimestamp": 15980987429000,
        "datastream":"weather"
    },
    "body":{
        "index": "3491506_1475204886914_bin"
    }
}

Device lifecycle event message

The device lifecycle event message format is as follows:

Parameter Property Type Description
sysProperty messageType string Message type: fixed as deviceLifeCycle
productId string Product ID
appProperty deviceId string Device ID
dataTimestamp int A timestamp that specifies when the device message occurred, in milliseconds
body object Created, deleted, online, offline created/deleted/online/offline

Json Example

{
    "sysProperty": {
        "messageType": "deviceLifeCycle",
        "productId": "90273",
    },
    "appProperty":{
        "deviceId": "102839",
        "dataTimestamp": 15980987429000,
    },
    "body":{
        "event": "online"
    }
}

个搜索结果,搜索内容 “

    0 个搜索结果,搜索内容 “