请问一下,mesh SDK里面,各opcode涂鸦平台对应的参数说明文档在哪里可以获取?这些参数和mesh文档里的描述不一致。谢谢
比如我在接收mesh 命令的地方打印opcode和参数:
OPERATE_RET app_mesh_data_recv(TAL_MESH_ACCESS_MSG_T *msg_raw, TAL_MESH_NET_PARAM_T *net_param){
printf("msg_raw->opcode:0x%04x ,data: ",msg_raw->opcode);
printf(msg_raw->data, msg_raw->data_len);
}
-------------------分割线---------------------------------------------
开关命令时打印结果
msg_raw->opcode:0x8202 ,data: 00 a2 //开命令
msg_raw->opcode:0x8202 ,data: 01 a5 //关命令
mesh文档里描述的参数是下面这些
3.2.1.2 Generic OnOff Set
Field | Size(octets) | Notes
OnOff 1 The target value of the Generic OnOff state
TID 1 Transaction Identifier
Transition Time 1 Format as defined in Section 3.1.3. (Optional)
Delay 1 Message execution delay in 5 millisecond steps (C.1)
-------------------分割线---------------------------------------------
调整亮度时,APP显示58%,打印结果
msg_raw->opcode:0xc9d007 ,data: 01 6c 03 15 31 30 30 30 30 30 30 30 30 30 30 30 30 30 32 34 36 30 30 30 30
msg_raw->opcode:0x824c ,data: fe 94 ac
mesh文档里描述的参数是下面这些
6.3.1.2 Light Lightness Set
Field | Size(octets) | Notes
Lightness 2 The target value of the Light Lightness Actual state.
TID 1 Transaction Identifier
Transition Time 1 Format as defined in Section 3.1.3. (Optional)
Delay 1 Message execution delay in 5 millisecond steps. (C.1)
-------------------分割线---------------------------------------------
调整色温时,APP不显示百分比,点击界面大概在色温中间位置,打印结果
msg_raw->opcode:0xc9d007 ,data: 01 6c 03 15 31 30 30 30 30 30 30 30 30 30 30 30 30 30 32 34 36 30 31 65 35
msg_raw->opcode:0x8264 ,data: 80 27 00 00 b5 00 00
文档里描述的参数是下面这些
6.3.2.6 Light CTL Temperature Set
Field | Size(octets) | Notes
CTL Temperature 2 The target value of the Light CTL Temperature state.
CTL Delta UV 2 The target value of the Light CTL Delta UV state.
TID 1 Transaction Identifier
Transition Time 1 Format as defined in Section 3.1.3. (Optional)
Delay 1 Message execution delay in 5 millisecond steps. (C.1)