update device
http://www.lewei50.com/api/v1/gateway/update/{device ID}
Yes
None
post
{
"name":"test device",
"description":"test des",
"isControlled":true,
"internetAvailable":true,
"apiAddress":"http://192.168.1.105/api"
}
| Required | Type | Description | |
|---|---|---|---|
| name | Yes | string | Device name |
json
{
"Successful": false,
"Message": "Invalid device no"
}
| Type | Description | |
|---|---|---|
| Successful | boolean | Successful |
| Message | string | Message if error |
Automatically records the user equipment public IP, public API address information and update.