API / streamZ/MSP 325N / Scene Control
Scene Control Commands
Applies to
streamZ, MSP 325N
Scene Query
| Symbol | Size (Byte) | Definition | Remarks |
|---|---|---|---|
| CMD | 1 | 0XE1 | |
| DAT1 | 1 | 0X19 | |
| DAT2 | 1 | 0X01 | |
| DAT3 | 1 | Data block length (LSB) | |
| DAT4 | 1 | Data block length (MSB) |
Send command example
: <T0000e119011f001a>{"canvas_mode":0,"language":1}0
Response command example: <F0000e11901580053>{"deviceUuid":"yunbao4267b39f7370","msg":"success","data":{"scenes_id":[1,6]},"code":0}0
Send Data Block Description
| Parameter | Required | Type | Description |
|---|---|---|---|
| canvas_mode | * | int | 0: landscape, 1: portrait |
Response Data Block Description
| Parameter | Required | Type | Description |
|---|---|---|---|
| scenes_id | * | int | Scene ID |
Scene Switching
| Symbol | Size (Byte) | Definition | Remarks |
|---|---|---|---|
| CMD | 1 | 0XE0 | |
| DAT1 | 1 | 0X19 | |
| DAT2 | 1 | 0X08 | |
| DAT3 | 1 | Data block length (LSB) | |
| DAT4 | 1 | Data block length (MSB) |
Send command example
: <T0000e019082c002d>{"canvas_mode":0,"scene_id":6,"language":1}0
Response command example: <F0000e019083d003e>{"deviceUuid":"yunbao4267b39f7370","msg":"success","code":0}0
Send Data Block Description
| Parameter | Required | Type | Description |
|---|---|---|---|
| canvas_mode | * | int | 0: landscape, 1: portrait |
| scenes_id | * | int | Scene ID |
Current Scene Query
| Symbol | Size (Byte) | Definition | Remarks |
|---|---|---|---|
| CMD | 1 | 0XE1 | |
| DAT1 | 1 | 0X19 | |
| DAT2 | 1 | 0X08 | |
| DAT3 | 1 | Data block length (LSB) | |
| DAT4 | 1 | Data block length (MSB) |
Send command example
: <T0000e119080f0011>{"language":1}0
Response command example: <F0000e11908630065>{"deviceUuid":"yunbao4267b39f7370","msg":"success","data":{"canvas_mode":0,"scene_id":6},"code":0}0
Response Data Block Description
| Parameter | Required | Type | Description |
|---|---|---|---|
| canvas_mode | * | int | 0: landscape, 1: portrait |
| scenes_id | * | int | Scene ID |