您好,我已经参考了温湿度传感器接入标准了,加了温度的Clusters和对应的attr_id。现在我有另外一个问题:
1.产品定义中,定义了温度上下限等其他标准dp点,我参考了门磁传感器的例程,添加了Clusters:0xE002(TUYA_SENSOR),也添加了对应温度传感器的attr_id,但app面板上面下发配置时,tal_zcl_specific_msg_recv_callback()这个函数没用接收到数据,是哪里配置不对吗?请帮忙指导一下
Code: Select all
//tuya private attribute list
#define TUYA_SENSOR_ATTR_LIST \
{ 0xD006, ATTR_ENUM8_ATTRIBUTE_TYPE, 1, (ATTR_MASK_READABLE), 0, (UINT8_T*)0x00 }, /* / TUYA sensor / temp_alarm*/\
{ 0xD008, ATTR_INT8U_ATTRIBUTE_TYPE, 1, (ATTR_MASK_TOKEN_FAST|ATTR_MASK_WRITABLE), 0, (UINT8_T*)0x01 }, /* / TUYA sensor / temp_sampling*/\
{ 0xD009, ATTR_INT8U_ATTRIBUTE_TYPE, 1, (ATTR_MASK_TOKEN_FAST|ATTR_MASK_WRITABLE), 0, (UINT8_T*)0x3c }, /* / TUYA sensor / temp_periodic_report*/\
{ 0xD00A, ATTR_INT16S_ATTRIBUTE_TYPE, 2, (ATTR_MASK_TOKEN_FAST|ATTR_MASK_WRITABLE), 0, (UINT8_T*)0x5203 }, /* / TUYA sensor / maxtemp_set*/\
{ 0xD00B, ATTR_INT16S_ATTRIBUTE_TYPE, 2, (ATTR_MASK_TOKEN_FAST|ATTR_MASK_WRITABLE), 0, (UINT8_T*)0x70fe }, /* / TUYA sensor / minitemp_set*/\
{ 0xD00C, ATTR_INT8U_ATTRIBUTE_TYPE, 1, (ATTR_MASK_TOKEN_FAST|ATTR_MASK_WRITABLE), 0, (UINT8_T*)0x0a }, /* / TUYA sensor / temp_sensitivity*/\
{ 0xFFFD, ATTR_INT16U_ATTRIBUTE_TYPE, 2, (ATTR_MASK_READABLE), 0, (UINT8_T*)0x0001 }, /* / TUYA sensor / cluster revision*/