Hi,
I would like to use the ZCL structs like
zcl_attribute_base_t
zcl_attribute_full_t
etc
to formulate a message but send it on a timer. I’m just not sure how to string it all together. On another processor I did this:
char xbeeTransmitHeader [] = {
0x11, /* extended transmit */
0x01, /* frame id 1 */
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* coordinator */
0xff, 0xfe, /* network address = broadcast */
0x40, /* source endpoint */
0x40, /* dest endpoint */
0x00, 0x00, /* cluster id, big endian */
0xDE, 0xED, /* profile id, big endian */
0x00, /* max hops unlimited */
0x00, /* transmit options */
/* ZCL Header */
0x10, /* frame control, disable default response */
0x01, /* transaction sequence number */
0x0A, /* command id = report attributes */
};
struct Payload {
uint16_t attributeId;
uint8_t type;
float value;
} __attribute((__packed__))__;
That basically defines an extended transmit request. In this new case, what I’d like to do is basically the same thing but it seems like the zcl library in the sdk should do most of the work for me, and I should be able to define a
zcl_attribute_base_t object_descrs = {
0, ZCL_ATTRIB_FLAG