Update sensor infomation
http://www.lewei50.com/api/v1/sensor/UpdateSensorInfo/{sensor ID}
Yes
None
post
{
"idName":"GPS",
"name":"testt1",
"unit":"1",
"description":"test"
}
| Required | Type | Description | |
|---|---|---|---|
| idName | No | string | Sensor ID |
| name | No | string | Sensor name |
| unit | No | string | Sensor unit |
| description | No | string | Sensor description |
json
{
"Successful": false,
"Message": "Invalid sensor format."
}
| Type | Description | |
|---|---|---|
| Successful | boolean | Successful |
| Message | string | Message if error |
Sensor ID is not id name, because this can modify the id Name.