&type
);
msg(" type = [0x%02X][%s]", type, zb_zcl_get_data_type_str(type));
- zb_attr_report_get_value(
+ ret = zb_attr_report_get_value(
records[j],
&type,
&buf,
&count
);
- if (ZIGBEE_ERROR_NONE == ret) {
+ if (0 < count && ZIGBEE_ERROR_NONE == ret) {
for (i = 0; i < count; i++)
msg(" 0x%02X ", buf[i]);
}