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
emberAfPluginWwahServerSendPoweringOffNotification(EmberNodeId nodeId, uint8_t srcEndpoint, uint8_t dstEndpoint, EmberAfWwahPowerNotificationReason reason, uint16_t manufacturerId, uint8_t *manufacturerReason, uint8_t manufacturerReasonLen, void(*pcallback)(EmberPowerDownNotificationResult))

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
emberAfPluginWwahServerSendPoweringOnNotification(EmberNodeId nodeId, uint8_t srcEndpoint, uint8_t dstEndpoint, EmberAfWwahPowerNotificationReason reason, uint16_t manufacturerId, uint8_t *manufacturerReason, uint8_t manufacturerReasonLen)

Send a Powering On Notification command to the specified destination.

emberReadWwahServerSilabsAttribute(uint8_t endpoint, EmberAfAttributeId attributeId, const char *name, uint8_t *data, uint8_t size)

Read wwah server silabs attribute.

emberWriteWwahServerSilabsAttribute(uint8_t endpoint, EmberAfAttributeId attributeId, const char *name, uint8_t *data, EmberAfAttributeType type)

write wwah server silabs attribute.

Enumerations#

enum
EMBER_POWER_DOWN_NOTIFICATION_SUCCESS
EMBER_POWER_DOWN_NOTIFICATION_FAILURE
EMBER_POWER_DOWN_NOTIFICATION_TIMEOUT
EMBER_POWER_DOWN_NOTIFICATION_IN_PROGRESS
}

Macros#

#define
EMBER_AF_PLUGIN_WWAH_SERVER_SILABS_SURVEY_BEACON_RESULT_LIMIT 4

API Documentation#

emberAfPluginWwahServerSendPoweringOffNotification#

void emberAfPluginWwahServerSendPoweringOffNotification (EmberNodeId nodeId, uint8_t srcEndpoint, uint8_t dstEndpoint, EmberAfWwahPowerNotificationReason reason, uint16_t manufacturerId, uint8_t * manufacturerReason, uint8_t manufacturerReasonLen, void(*)(EmberPowerDownNotificationResult) 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
EmberNodeIdN/AnodeId

Ver.: always

uint8_tN/AsrcEndpoint

Ver.: always

uint8_tN/AdstEndpoint

Ver.: always

EmberAfWwahPowerNotificationReasonN/Areason

Ver.: always

uint16_tN/AmanufacturerId

Ver.: always

uint8_t *N/AmanufacturerReason

Ver.: always

uint8_tN/AmanufacturerReasonLen

Ver.: always

void(*)(EmberPowerDownNotificationResult)N/Apcallback

Ver.: always


emberAfPluginWwahServerSendPoweringOnNotification#

void emberAfPluginWwahServerSendPoweringOnNotification (EmberNodeId nodeId, uint8_t srcEndpoint, uint8_t dstEndpoint, EmberAfWwahPowerNotificationReason reason, uint16_t manufacturerId, uint8_t * manufacturerReason, uint8_t manufacturerReasonLen)

Send a Powering On Notification command to the specified destination.

Parameters
TypeDirectionArgument NameDescription
EmberNodeIdN/AnodeId

Ver.: always

uint8_tN/AsrcEndpoint

Ver.: always

uint8_tN/AdstEndpoint

Ver.: always

EmberAfWwahPowerNotificationReasonN/Areason

Ver.: always

uint16_tN/AmanufacturerId

Ver.: always

uint8_t *N/AmanufacturerReason

Ver.: always

uint8_tN/AmanufacturerReasonLen

Ver.: always


emberReadWwahServerSilabsAttribute#

EmberAfStatus emberReadWwahServerSilabsAttribute (uint8_t endpoint, EmberAfAttributeId attributeId, const char * name, uint8_t * data, uint8_t size)

Read wwah server silabs attribute.

Parameters
TypeDirectionArgument NameDescription
uint8_tN/Aendpoint

Ver.: always

EmberAfAttributeIdN/AattributeId

Ver.: always

const char *N/Aname

Ver.: always

uint8_t *N/Adata

Ver.: always

uint8_tN/Asize

Ver.: always

Returns

  • EmberAfStatus app framework status code


emberWriteWwahServerSilabsAttribute#

EmberAfStatus emberWriteWwahServerSilabsAttribute (uint8_t endpoint, EmberAfAttributeId attributeId, const char * name, uint8_t * data, EmberAfAttributeType type)

write wwah server silabs attribute.

Parameters
TypeDirectionArgument NameDescription
uint8_tN/Aendpoint

Ver.: always

EmberAfAttributeIdN/AattributeId

Ver.: always

const char *N/Aname

Ver.: always

uint8_t *N/Adata

Ver.: always

EmberAfAttributeTypeN/Atype

Ver.: always

Returns

  • EmberAfStatus app framework status code


Enumeration Documentation#

EmberPowerDownNotificationResult#

EmberPowerDownNotificationResult
Enumerator
EMBER_POWER_DOWN_NOTIFICATION_SUCCESS
EMBER_POWER_DOWN_NOTIFICATION_FAILURE
EMBER_POWER_DOWN_NOTIFICATION_TIMEOUT
EMBER_POWER_DOWN_NOTIFICATION_IN_PROGRESS