WWAH Server Silabs#

API and Callbacks for the Silabs WWAH Cluster Server Component.

Silicon Labs proprietary Works With All Hubs (WWAH) server cluster.

API#

void
sl_zigbee_af_wwah_server_send_powering_off_notification(sl_802154_short_addr_t nodeId, uint8_t srcEndpoint, uint8_t dstEndpoint, sl_zigbee_af_wwah_power_notification_reason_t reason, uint16_t manufacturerId, uint8_t *manufacturerReason, uint8_t manufacturerReasonLen, void(*pcallback)(sl_zigbee_power_down_notification_result_t))

Send a Powering Off Notification command to the specified destination. If the callback function pointer is not NULL, the callback function will be called once the Powering Off Notification command is delivered or times out.

void
sl_zigbee_af_wwah_server_send_powering_on_notification(sl_802154_short_addr_t nodeId, uint8_t srcEndpoint, uint8_t dstEndpoint, sl_zigbee_af_wwah_power_notification_reason_t reason, uint16_t manufacturerId, uint8_t *manufacturerReason, uint8_t manufacturerReasonLen)

Send a Powering On Notification command to the specified destination.

sl_zigbee_read_wwah_server_silabs_attribute(uint8_t endpoint, sl_zigbee_af_attribute_id_t attributeId, const char *name, uint8_t *data, uint8_t size)

Read wwah server silabs attribute.

sl_zigbee_write_wwah_server_silabs_attribute(uint8_t endpoint, sl_zigbee_af_attribute_id_t attributeId, const char *name, uint8_t *data, sl_zigbee_af_attribute_type_t type)

write wwah server silabs attribute.

Enumerations#

enum
SL_ZIGBEE_POWER_DOWN_NOTIFICATION_SUCCESS
SL_ZIGBEE_POWER_DOWN_NOTIFICATION_FAILURE
SL_ZIGBEE_POWER_DOWN_NOTIFICATION_TIMEOUT
SL_ZIGBEE_POWER_DOWN_NOTIFICATION_IN_PROGRESS
}

Macros#

#define
SL_ZIGBEE_AF_PLUGIN_WWAH_SERVER_SILABS_SURVEY_BEACON_RESULT_LIMIT 4

API Documentation#

sl_zigbee_af_wwah_server_send_powering_off_notification#

void sl_zigbee_af_wwah_server_send_powering_off_notification (sl_802154_short_addr_t nodeId, uint8_t srcEndpoint, uint8_t dstEndpoint, sl_zigbee_af_wwah_power_notification_reason_t reason, uint16_t manufacturerId, uint8_t * manufacturerReason, uint8_t manufacturerReasonLen, void(*)(sl_zigbee_power_down_notification_result_t) pcallback)

Send a Powering Off Notification command to the specified destination. If the callback function pointer is not NULL, the callback function will be called once the Powering Off Notification command is delivered or times out.

Parameters
TypeDirectionArgument NameDescription
sl_802154_short_addr_tN/AnodeId

Ver.: always

uint8_tN/AsrcEndpoint

Ver.: always

uint8_tN/AdstEndpoint

Ver.: always

sl_zigbee_af_wwah_power_notification_reason_tN/Areason

Ver.: always

uint16_tN/AmanufacturerId

Ver.: always

uint8_t *N/AmanufacturerReason

Ver.: always

uint8_tN/AmanufacturerReasonLen

Ver.: always

void(*)(sl_zigbee_power_down_notification_result_t)N/Apcallback

Ver.: always


sl_zigbee_af_wwah_server_send_powering_on_notification#

void sl_zigbee_af_wwah_server_send_powering_on_notification (sl_802154_short_addr_t nodeId, uint8_t srcEndpoint, uint8_t dstEndpoint, sl_zigbee_af_wwah_power_notification_reason_t reason, uint16_t manufacturerId, uint8_t * manufacturerReason, uint8_t manufacturerReasonLen)

Send a Powering On Notification command to the specified destination.

Parameters
TypeDirectionArgument NameDescription
sl_802154_short_addr_tN/AnodeId

Ver.: always

uint8_tN/AsrcEndpoint

Ver.: always

uint8_tN/AdstEndpoint

Ver.: always

sl_zigbee_af_wwah_power_notification_reason_tN/Areason

Ver.: always

uint16_tN/AmanufacturerId

Ver.: always

uint8_t *N/AmanufacturerReason

Ver.: always

uint8_tN/AmanufacturerReasonLen

Ver.: always


sl_zigbee_read_wwah_server_silabs_attribute#

sl_zigbee_af_status_t sl_zigbee_read_wwah_server_silabs_attribute (uint8_t endpoint, sl_zigbee_af_attribute_id_t attributeId, const char * name, uint8_t * data, uint8_t size)

Read wwah server silabs attribute.

Parameters
TypeDirectionArgument NameDescription
uint8_tN/Aendpoint

Ver.: always

sl_zigbee_af_attribute_id_tN/AattributeId

Ver.: always

const char *N/Aname

Ver.: always

uint8_t *N/Adata

Ver.: always

uint8_tN/Asize

Ver.: always

Returns

  • sl_zigbee_af_status_t app framework status code


sl_zigbee_write_wwah_server_silabs_attribute#

sl_zigbee_af_status_t sl_zigbee_write_wwah_server_silabs_attribute (uint8_t endpoint, sl_zigbee_af_attribute_id_t attributeId, const char * name, uint8_t * data, sl_zigbee_af_attribute_type_t type)

write wwah server silabs attribute.

Parameters
TypeDirectionArgument NameDescription
uint8_tN/Aendpoint

Ver.: always

sl_zigbee_af_attribute_id_tN/AattributeId

Ver.: always

const char *N/Aname

Ver.: always

uint8_t *N/Adata

Ver.: always

sl_zigbee_af_attribute_type_tN/Atype

Ver.: always

Returns

  • sl_zigbee_af_status_t app framework status code


Enumeration Documentation#

sl_zigbee_power_down_notification_result_t#

sl_zigbee_power_down_notification_result_t
Enumerator
SL_ZIGBEE_POWER_DOWN_NOTIFICATION_SUCCESS
SL_ZIGBEE_POWER_DOWN_NOTIFICATION_FAILURE
SL_ZIGBEE_POWER_DOWN_NOTIFICATION_TIMEOUT
SL_ZIGBEE_POWER_DOWN_NOTIFICATION_IN_PROGRESS