Digi XBee(R) ANSI C Host Library
|
Code to support ZCL client clusters. More...
#include <ctype.h>
#include <stddef.h>
#include <stdio.h>
#include <time.h>
#include "xbee/platform.h"
#include "zigbee/zdo.h"
#include "zigbee/zcl.h"
#include "zigbee/zcl_client.h"
Functions | |
int | zcl_process_read_attr_response (zcl_command_t *zcl, const zcl_attribute_base_t FAR *attr_table) |
Process a Read Attributes Response and populate the attibute values into an attribute table as if it was a Write Attributes Request. More... | |
int | zcl_client_read_attributes (wpan_envelope_t FAR *envelope, const zcl_client_read_t *client_read) |
Send a Read Attributes request for attributes listed in client_read . More... | |
int | _zcl_send_read_from_zdo_match (wpan_conversation_t FAR *conversation, const wpan_envelope_t FAR *envelope) |
int | zcl_find_and_read_attributes (wpan_dev_t *dev, const uint16_t *clusters, const zcl_client_read_t FAR *cr) |
Use ZDO Match Descriptor Requests to find devices with a given profile/cluster and then automatically send a ZCL Read Attributes request for some of that cluster's attributes. More... | |
int | zdo_send_match_desc (wpan_dev_t *dev, const uint16_t *clusters, uint16_t profile_id, wpan_response_fn callback, const void FAR *context) |
Send a ZDO Match Descriptor request for a list of cluster IDs. More... | |
int | zcl_create_attribute_records (void FAR *buffer, uint8_t bufsize, const zcl_attribute_base_t FAR **p_attr_list) |
From a list of attributes, write ID (in little-endian byte order), type and value to a buffer as would be done in a Write Attributes Request. More... | |
int | zcl_send_write_attributes (wpan_envelope_t *envelope, const zcl_attribute_base_t FAR *attr_list) |
Send one or more Write Attributes Requests to a node on the network. More... | |
const char * | _zcl_format_utctime (char dest[40], zcl_utctime_t utctime) |
Default function for zcl_format_utctime function pointer. More... | |
int | zcl_print_array_value (const void *value, int value_length) |
Print Read Attributes Response value of an array attribute. More... | |
int | zcl_print_struct_value (const void *value, int value_length) |
Print Read Attributes Response value of a structure attribute. More... | |
int | zcl_print_attribute_value (uint8_t type, const void *value, int value_length) |
Formats an attribute value and prints it to stdout. More... | |
Variables | |
zcl_format_utctime_fn | zcl_format_utctime = _zcl_format_utctime |
Pointer to function that converts a zcl_utctime_t value to a human-readable timestamp. More... | |
Code to support ZCL client clusters.