Prepayment Server#

Callbacks for Prepayment Server Component.

Callbacks#

void
emberAfPrepaymentClusterServerAttributeChangedCallback(uint8_t endpoint, EmberAfAttributeId attributeId)

Prepayment Cluster Server Attribute Changed.

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

Prepayment cluster server default response.

void

Initialize the prepayment cluster server.

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

Prepayment cluster server manufacturer-specific attribute changed.

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

Prepayment cluster server message sent.

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

Prepayment cluster server pre attribute changed.

Callbacks Documentation#

emberAfPrepaymentClusterServerAttributeChangedCallback#

void emberAfPrepaymentClusterServerAttributeChangedCallback (uint8_t endpoint, EmberAfAttributeId attributeId)

Prepayment Cluster Server Attribute Changed.

Parameters
TypeDirectionArgument NameDescription
uint8_tN/Aendpoint

Endpoint that is being initialized Ver.: always

EmberAfAttributeIdN/AattributeId

Attribute that changed Ver.: always


emberAfPrepaymentClusterServerDefaultResponseCallback#

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

Prepayment cluster server 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 server receives the default response from the client.


emberAfPrepaymentClusterServerInitCallback#

void emberAfPrepaymentClusterServerInitCallback (uint8_t endpoint)

Initialize the prepayment cluster server.

Parameters
TypeDirectionArgument NameDescription
uint8_tN/Aendpoint

Endpoint that is being initialized Ver.: always


emberAfPrepaymentClusterServerManufacturerSpecificAttributeChangedCallback#

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

Prepayment cluster server 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


emberAfPrepaymentClusterServerMessageSentCallback#

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

Prepayment cluster server message sent.

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


emberAfPrepaymentClusterServerPreAttributeChangedCallback#

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

Prepayment cluster server 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