API int zb_get_analog_or_discret(unsigned char type)
{
int index = 0;
+ CHECK_FEATURE_SUPPORTED(ZIGBEE_FEATURE);
unsigned char var = analog_discrete_thresholds[index];
while (var < type && var < 0xFF) {
API int zb_get_data_size(unsigned char type)
{
int i;
- int count = (int)(sizeof(attribute_sizes) / 2);
+ int count;
+ CHECK_FEATURE_SUPPORTED(ZIGBEE_FEATURE);
+
+ count = (int)(sizeof(attribute_sizes) / 2);
for (i = 0; i < count; i++) {
if (attribute_sizes[i].type == type)
return attribute_sizes[i].size;
unsigned short *id)
{
struct read_reporting_configuration_record_s *h = handle;
+ CHECK_FEATURE_SUPPORTED(ZIGBEE_FEATURE);
RETV_IF(NULL == h, ZIGBEE_ERROR_INVALID_PARAMETER);
*id = h->id;
return ZIGBEE_ERROR_NONE;