bv-api-key: ********************[
{
"productId": "ovw9GOl46TSqbedc",
"deviceId": "{% mock 'uuid' %}",
"deviceName": "设备{% mock 'timestamp' %}",
"deviceStatus": {% mock 'integer', 0, 1 %},
"payload": {
"ipAddress": "{% mock 'ip' %}",
"switchStatus": {% mock 'boolean' %},
"brandInformation": "{% mock 'ctitle' %}",
"scheduledOnTime": "{% mock 'now', 'hour', 'HH:mm:ss', '', '' %}",
"scheduledOffTime": "{% mock 'now', 'second', 'HH:mm:ss', '', '' %}",
"humidity": "{% mock 'float', min=0, max=0, dmin=2, dmax=2 %}°",
"temperature": "{% mock 'float', min=0, max=0, dmin=2, dmax=2 %}°",
"networkType": "IPv4",
"connectionStatus": "已连接",
"productModel": "{% mock 'ctitle' %}",
"currentAndVoltage": {
"realTimeVoltage": 220,
"realTimeCurrent": {% mock 'float', min=0, max=0, dmin=2, dmax=2 %}
},
"powerRelated": {}
}
}
]curl --location 'http://192.168.100.38:48083/bv-universal-gateway/api/accessGateway/deviceReport' \
--header 'bv-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '[
{
"productId": "ovw9GOl46TSqbedc",
"deviceId": "{% mock '\''uuid'\'' %}",
"deviceName": "设备{% mock '\''timestamp'\'' %}",
"deviceStatus": {% mock '\''integer'\'', 0, 1 %},
"payload": {
"ipAddress": "{% mock '\''ip'\'' %}",
"switchStatus": {% mock '\''boolean'\'' %},
"brandInformation": "{% mock '\''ctitle'\'' %}",
"scheduledOnTime": "{% mock '\''now'\'', '\''hour'\'', '\''HH:mm:ss'\'', '\'''\'', '\'''\'' %}",
"scheduledOffTime": "{% mock '\''now'\'', '\''second'\'', '\''HH:mm:ss'\'', '\'''\'', '\'''\'' %}",
"humidity": "{% mock '\''float'\'', min=0, max=0, dmin=2, dmax=2 %}°",
"temperature": "{% mock '\''float'\'', min=0, max=0, dmin=2, dmax=2 %}°",
"networkType": "IPv4",
"connectionStatus": "已连接",
"productModel": "{% mock '\''ctitle'\'' %}",
"currentAndVoltage": {
"realTimeVoltage": 220,
"realTimeCurrent": {% mock '\''float'\'', min=0, max=0, dmin=2, dmax=2 %}
},
"powerRelated": {}
}
}
]'{
"code": 0,
"message": "string",
"info": null
}