button-action
Use the interface to set single-click event for buttons.
Request Mode
POST/GET http://ip/mwapi/button-action/[n]
Introduction
[n] is for the device button sequence, taking the value from 1 to 5. This interface does not require user authentication, and supports POST and GET.
Response Body
JSON structure is as follows:
{
"status": 0,
}
Name | Description |
---|---|
status | 0 indicates a successful data acquisition. Refer to API Status Codes to find specific description for other values. |