set-first-over

Use the interface to initialize the encoder when visiting it for the first time, especially the device name and passcode.

Obtain current device running status mask using get-status.

{
  "cur-status": 65552                    // device running status mask
  ...
}

statusFirst(0x01) indicates the device's first boot. If cur-status & statusFirst = statusFirst, it means the streamer is on the first run.

HTTP Request

// Enable pairing password 
GET http://ip/usapi?method=set-first-over&name=xxx&enable-passwd=1&passwd=xxx

// Disable pairing password 
GET http://ip/usapi?method=set-first-over&name=xxx&enable-passwd=0
Parameter Description
method set-first-over
name Indicates the 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 space.
enable-passwd Indicates the enable status of pairing password.
0 indicates disabled.
1 indicates enabled.
pass Indicates MD5 encrypted password. It is mandatory when enable-passwd = 1.

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.

results matching ""

    No results matching ""

    results matching ""

      No results matching ""