set-first-over
Use this interface to initialize the encoder when accessing it for the first time, mainly to set the device name.
Obtain current device running status mask using get-status.
{
"cur-status": 65552 // device running status mask
...
}
statusFirst(0x01) indicates the device's first booting. If cur-status & statusFirst = statusFirst, it means the encoder is on the first run.
HTTP Request
GET http://ip/usapi?method=set-first-over&name=xxx
Parameter | Description |
---|---|
method | set-first-over |
name | The string of device name which contains 1. 1 to 32 characters 2. A to Z, a to z, 0 to 9, spaces and special characters ._-+'[](), and can not start or end with spaces. |
Response Body
{
"result": 0
}
Item | Description |
---|---|
result | 0 indicates that the request was accepted successfully. Refer to API Status Codes to find specific description for other values. |