jsonString数据参考格式:
{
"name": "Rule01",
"description": "string""conditions": [
{
"type": "DEVICE_DATA",
"deviceInfo": {
"devId": "2323-1221-...",
"devType": "005",
"path": "switch/on"
},
"operator": "=",
"value": "1"
}
]"author": "12222",
"actions": [
{
"type": "DEVICE_CMD",
"devId": "2323-1221-...",
"devType": "01B",
"cmd": {
"sid": "switch",
"messageType": "POST",
"messageBody": {
"on": 1
}
}
}
]
}
{
"ruleId": "*******",
"name": "Rule01",
"conditions": [
{
"id": "****",
"type": "DEVICE_DATA",
"deviceInfo": {
"devId": "2323-1221-...",
"devType": "005",
"path": "switch/on"
},
"operator": "=",
"value": "1"
}
],
"author": "12222",
"actions": [
{
"type": "DEVICE_CMD",
"id": "****",
"devId": "2323-1221-...",
"devType": "01B",
"cmd": {
"sid": "switch",
"messageType": "POST",
"messageBody": {
"on": 1
}
}
}
]
}