Price Client#

Callbacks for Price Client Component.

Callbacks#

void
emberAfPriceClusterClientAttributeChangedCallback(uint8_t endpoint, EmberAfAttributeId attributeId)

Price cluster client attribute changed.

void
emberAfPriceClusterClientDefaultResponseCallback(uint8_t endpoint, uint8_t commandId, EmberAfStatus status)

Price cluster client default response.

void

Initialize the price cluster client.

void
emberAfPriceClusterClientManufacturerSpecificAttributeChangedCallback(uint8_t endpoint, EmberAfAttributeId attributeId, uint16_t manufacturerCode)

Price cluster client manufacturer-specific attribute changed.

void
emberAfPriceClusterClientMessageSentCallback(EmberOutgoingMessageType type, uint16_t indexOrDestination, EmberApsFrame *apsFrame, uint16_t msgLen, uint8_t *message, EmberStatus status)

Send the price cluster client message.

emberAfPriceClusterClientPreAttributeChangedCallback(uint8_t endpoint, EmberAfAttributeId attributeId, EmberAfAttributeType attributeType, uint8_t size, uint8_t *value)

Price cluster client pre attribute changed.

void

Price cluster client tick.

void
emberAfPluginPriceClientPriceStartedCallback(EmberAfPluginPriceClientPrice *price)

Start price.

void
emberAfPluginPriceClientPriceExpiredCallback(EmberAfPluginPriceClientPrice *price)

Expire price.

uint8_t

Pending CPP event.

Callbacks Documentation#

emberAfPriceClusterClientAttributeChangedCallback#

void emberAfPriceClusterClientAttributeChangedCallback (uint8_t endpoint, EmberAfAttributeId attributeId)

Price cluster client attribute changed.

Parameters
TypeDirectionArgument NameDescription
uint8_tN/Aendpoint

Endpoint that is being initialized Ver.: always

EmberAfAttributeIdN/AattributeId

Attribute that changed Ver.: always


emberAfPriceClusterClientDefaultResponseCallback#

void emberAfPriceClusterClientDefaultResponseCallback (uint8_t endpoint, uint8_t commandId, EmberAfStatus status)

Price cluster client default response.

Parameters
TypeDirectionArgument NameDescription
uint8_tN/Aendpoint

Destination endpoint Ver.: always

uint8_tN/AcommandId

Command id Ver.: always

EmberAfStatusN/Astatus

Status in default response Ver.: always

This function is called when the client receives the default response from the server.


emberAfPriceClusterClientInitCallback#

void emberAfPriceClusterClientInitCallback (uint8_t endpoint)

Initialize the price cluster client.

Parameters
TypeDirectionArgument NameDescription
uint8_tN/Aendpoint

Endpoint that is being initialized Ver.: always


emberAfPriceClusterClientManufacturerSpecificAttributeChangedCallback#

void emberAfPriceClusterClientManufacturerSpecificAttributeChangedCallback (uint8_t endpoint, EmberAfAttributeId attributeId, uint16_t manufacturerCode)

Price cluster client manufacturer-specific attribute changed.

Parameters
TypeDirectionArgument NameDescription
uint8_tN/Aendpoint

Endpoint that is being initialized Ver.: always

EmberAfAttributeIdN/AattributeId

Attribute that changed Ver.: always

uint16_tN/AmanufacturerCode

Manufacturer Code of the attribute that changed Ver.: always


emberAfPriceClusterClientMessageSentCallback#

void emberAfPriceClusterClientMessageSentCallback (EmberOutgoingMessageType type, uint16_t indexOrDestination, EmberApsFrame * apsFrame, uint16_t msgLen, uint8_t * message, EmberStatus status)

Send the price cluster client message.

Parameters
TypeDirectionArgument NameDescription
EmberOutgoingMessageTypeN/Atype

The type of message sent Ver.: always

uint16_tN/AindexOrDestination

The destination or address to which the message was sent Ver.: always

EmberApsFrame *N/AapsFrame

The APS frame for the message Ver.: always

uint16_tN/AmsgLen

The length of the message Ver.: always

uint8_t *N/Amessage

The message that was sent Ver.: always

EmberStatusN/Astatus

The status of the sent message Ver.: always


emberAfPriceClusterClientPreAttributeChangedCallback#

EmberAfStatus emberAfPriceClusterClientPreAttributeChangedCallback (uint8_t endpoint, EmberAfAttributeId attributeId, EmberAfAttributeType attributeType, uint8_t size, uint8_t * value)

Price cluster client pre attribute changed.

Parameters
TypeDirectionArgument NameDescription
uint8_tN/Aendpoint

Endpoint that is being initialized Ver.: always

EmberAfAttributeIdN/AattributeId

Attribute to be changed Ver.: always

EmberAfAttributeTypeN/AattributeType

Attribute type Ver.: always

uint8_tN/Asize

Attribute size Ver.: always

uint8_t *N/Avalue

Attribute value Ver.: always


emberAfPriceClusterClientTickCallback#

void emberAfPriceClusterClientTickCallback (uint8_t endpoint)

Price cluster client tick.

Parameters
TypeDirectionArgument NameDescription
uint8_tN/Aendpoint

Endpoint that is being served Ver.: always


emberAfPluginPriceClientPriceStartedCallback#

void emberAfPluginPriceClientPriceStartedCallback (EmberAfPluginPriceClientPrice * price)

Start price.

Parameters
TypeDirectionArgument NameDescription
EmberAfPluginPriceClientPrice *N/Aprice

The price that has started. Ver.: always

This function is called by the Price client plugin whenever a price starts.


emberAfPluginPriceClientPriceExpiredCallback#

void emberAfPluginPriceClientPriceExpiredCallback (EmberAfPluginPriceClientPrice * price)

Expire price.

Parameters
TypeDirectionArgument NameDescription
EmberAfPluginPriceClientPrice *N/Aprice

The price that has expired. Ver.: always

This function is called by the Price client plugin whenever a price expires.


emberAfPluginPriceClientPendingCppEventCallback#

uint8_t emberAfPluginPriceClientPendingCppEventCallback (uint8_t cppAuth)

Pending CPP event.

Parameters
TypeDirectionArgument NameDescription
uint8_tN/AcppAuth

The CPP Auth status. Ver.: always

This function is called by the Price client plugin when a CPP event is received with a pending status.