API / streamZ/MSP 325N / Button Panel
Button Panel
Applies to
streamZ, MSP 325N
Button Board Model Query
| Symbol | Size (Byte) | Definition | Remarks |
|---|---|---|---|
| CMD | 1 | 0XE1 | |
| DAT1 | 1 | 0X20 | |
| DAT2 | 1 | 0X00 | |
| DAT3 | 1 | Data block length (LSB) | |
| DAT4 | 1 | Data block length (MSB) |
Send command example
: {"language":1} 3
Response command example: {"code":0, "data":{"type":1}, deviceUuid":"0122477JPRTA69000001","msg":"成功"}e
Send Data Block Description
| Parameter | Required | Type | Description |
|---|---|---|---|
| type | * | int | Model |
Button Board Function Definition
| Symbol | Size (Byte) | Definition | Remarks |
|---|---|---|---|
| CMD | 1 | 0XE0 | |
| DAT1 | 1 | 0X20 | |
| DAT2 | 1 | 0X01 | |
| DAT3 | 1 | Data block length (LSB) | |
| DAT4 | 1 | Data block length (MSB) |
Send command example
: {"language":1,"op":[{"key":1,"func":1},{"key":2,"func":2}]} 3
Response command example: {"code":0, , deviceUuid":"0122477JPRTA69000001","msg":"成功"}e
Send Data Block Description
| Parameter | Required | Type | Description |
|---|---|---|---|
| key | * | int | Key value |
| func | * | int | Function definition value |
Button Board Function Query
| Symbol | Size (Byte) | Definition | Remarks |
|---|---|---|---|
| CMD | 1 | 0XE1 | |
| DAT1 | 1 | 0X20 | |
| DAT2 | 1 | 0X01 | |
| DAT3 | 1 | Data block length (LSB) | |
| DAT4 | 1 | Data block length (MSB) |
Send command example
: {"language":1} 3
Response command example: {"code":0, "data":{"op":[{"key":1,"func":1},{"key":2,"func":2}]}, deviceUuid":"0122477JPRTA69000001","msg":"成功"}e
Response Data Block Description
| Parameter | Required | Type | Description |
|---|---|---|---|
| key | * | int | Key value |
| func | * | int | Function definition value |