This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Zigbee string attribute not being reported

Hello,

I'm having an issue with attribute reports on change for the string data type.

I have my custom cluster created like the following:

typedef struct
{
    zb_uint8_t    machine_status; 
    zb_uint16_t   display_error;
    zb_char_t     machine_type[20];
} zb_zcl_common_measurement_attrs_t;

For the string attribute:

#define ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_MACHINE_TYPE_MEASUREMENT_VALUE_ID(data_ptr) \
{                                                                                           \
    ZB_ZCL_ATTR_MACHINE_TYPE_MEASUREMENT_VALUE_ID,                                     \
    ZB_ZCL_ATTR_TYPE_CHAR_STRING,                                                           \
    ZB_ZCL_ATTR_ACCESS_READ_ONLY | ZB_ZCL_ATTR_ACCESS_REPORTING,                            \
    (zb_voidp_t) data_ptr                                                                   \
}

All the other attributes are reporting fine, but the string attribute is only reported the first time, and not as soon as the value is updated. 

I'm also checking with Wireshark, that indeed the attribute is not reported.

Thanks for the support,

Regards,

Fernando Fontes

Related