set-first-over

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

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.
passwd Indicates MD5 encrypted password. It is mandatory when enable-passwd = 1.
timezone Indicates the timezone, such as Asia/Shanghai. For detailed information, refers to set-date-timeset-date-time.md
is-auto Indicates whether to synchronize time automatically. 0 indicates to set time manually. 1 indicates to set time automatically.
time Indicates to set time manually. The time string forms like 2019-09-10 15:10:00.
Leave the time="", when is-auto=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 ""