Trigger long-press action for device button
1. API Description
This API is used to trigger a long-press action for a device button.
Request mode:
- V2.6.0 and above: POST/GET /mwapi/V2.0/button/long-press/n
- V2.5.0 and below: POST/GET /mwapi/button-long-press/n
Note: [n] represents the sequence of device buttons, with values ranging from 1 to 5.
Administrator Rights | Logged-in |
---|---|
No | No |
2. Input Parameters
None.
3. Output Parameters
Name | Type | Description |
---|---|---|
status | Int | Status code |
4. Example
Triggering a long-press action for a device button.
Input Example
None
Output Example
{
"status": 0,
}
5. Error Code
No error code related to the API business logic. For other error codes, see Common Error Codes.