Start/Stop pairing

1. API Description

This API is used for the App to start or stop pairing with the device. The login mode of App should be set to "Pairing to login", referring to Set App login mode.

Request mode:

  • V2.6.0 and above: POST [ip]/mwapi/V2.0/app/set-app-pairing-status
  • V2.5.0 and below: POST [ip]/mwapi/set-app-pairing-status
Administrator Rights Logged-in
No Yes

2. Input Parameters

Name Required Type Description
enable Yes Boolean The pairing status
true: Start pairing; false: Stop pairing

3. Output Parameters

Name Type Description
status Int Status code
message String Status description

4. Example

Starting pairing the App to the device.

Input Example
{
    "enable":true
}
Output Example
{
    "message": "success",
    "status": 0
}

5. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Status Definition Description
11 MW_STATUS_DEVICE_BUSY The scene is being edited.
49 MW_STATUS_INVALID_DATA The parameters are missing or incorrect

results matching ""

    No results matching ""