Add sensor
http://www.lewei50.com/api/v1/gateway/addsensor/{device ID}
Yes
None
post
{ "idName":"T1", "typeName":"TEMP", "name":"testt1", "unit":"℃" }
Required | Type | Description | |
---|---|---|---|
idName | Yes | string | Sensor ID |
typeName | Yes | string | Sensor type |
name | Yes | string | Sensor name |
unit | No | string | Sensor unit |
json
{ "Successful": false, "Message": "Sensor idName required." }
Type | Description | |
---|---|---|
Successful | boolean | Successful |
Message | string | Message if error |
Sensor type list:
TEMP Temperature
PRES Air pressure
HUMI Humdity
GPSS GPS
DIST Depth
JDQI Relay
CO22 CO2
KLUX Light Intensity
PMUG Particulate matter
PMU2 Particulate matter-2
PMU3 Particulate matter-3
OTHR Other