Digi XBee(R) ANSI C Host Library
Data Fields
zcl_attribute_full_t Struct Reference

Use this structure for attributes with min/max values or the need to have a read/write function. More...

#include "zigbee/zcl.h"

Data Fields

zcl_attribute_base_t base
 
zcl_attribute_minmax_t min
 Minimum value for attribute (currently unused until I pick a value to represent "none"). More...
 
zcl_attribute_minmax_t max
 Maximum value for attribute, assumes 32-bit limit. More...
 
zcl_attribute_update_fn read
 On an attribute read, the ZCL dispatcher will call the .read function to refresh the attribute's value before responding to the request. More...
 
zcl_attribute_write_fn write
 On an attribute write, the ZCL dispatcher will call the .write function with a structure containing information about the write request. More...
 

Detailed Description

Use this structure for attributes with min/max values or the need to have a read/write function.

Be sure to set the ZCL_ATTRIB_FLAG_FULL flag in .base.flags so the attribute is parsed with the correct type.

Field Documentation

Maximum value for attribute, assumes 32-bit limit.

For string attributes, the maximum length that can be stored at value.

Minimum value for attribute (currently unused until I pick a value to represent "none").

On an attribute read, the ZCL dispatcher will call the .read function to refresh the attribute's value before responding to the request.

Do I need a return value in the function to pass an error up?

On an attribute write, the ZCL dispatcher will call the .write function with a structure containing information about the write request.

See the documentation for zcl_attribute_write_fn() for the API, and the Time and Identify clusters for examples of its use.


The documentation for this struct was generated from the following file: