Prepayment Client#
Callbacks for Prepayment Client Component.
Callbacks#
Payment mode change callback.
Called when the prepayment cluster client attribute has changed.
Called when the client receives the default response from the server.
Initialize prepayment cluster client.
Called when the prepayment cluster client manufacturer -specific attribute has changed.
Called when the prepayment cluster client message was sent.
Called when the prepayment cluster client pre attribute has changed.
Called upon the prepayment cluster client tick.
Callbacks Documentation#
emberAfPluginPrepaymentClusterChangePaymentModeResponseCallback#
bool emberAfPluginPrepaymentClusterChangePaymentModeResponseCallback (uint8_t friendlyCredit, uint32_t friendlyCreditCalendarId, uint32_t emergencyCreditLimit, uint32_t emergencyCreditThreshold)
Payment mode change callback.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint8_t | N/A | friendlyCredit | Ver.: always |
uint32_t | N/A | friendlyCreditCalendarId | Ver.: always |
uint32_t | N/A | emergencyCreditLimit | Ver.: always |
uint32_t | N/A | emergencyCreditThreshold | Ver.: always |
Returns
bool
emberAfPrepaymentClusterClientAttributeChangedCallback#
void emberAfPrepaymentClusterClientAttributeChangedCallback (uint8_t endpoint, EmberAfAttributeId attributeId)
Called when the prepayment cluster client attribute has changed.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint8_t | N/A | endpoint | Endpoint that is being initialized Ver.: always |
EmberAfAttributeId | N/A | attributeId | Attribute that changed Ver.: always |
Client attribute has changed.
emberAfPrepaymentClusterClientDefaultResponseCallback#
void emberAfPrepaymentClusterClientDefaultResponseCallback (uint8_t endpoint, uint8_t commandId, EmberAfStatus status)
Called when the client receives the default response from the server.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint8_t | N/A | endpoint | Destination endpoint Ver.: always |
uint8_t | N/A | commandId | Command id Ver.: always |
EmberAfStatus | N/A | status | Status in default response Ver.: always |
This function is called when the client receives the default response from the server.
emberAfPrepaymentClusterClientInitCallback#
void emberAfPrepaymentClusterClientInitCallback (uint8_t endpoint)
Initialize prepayment cluster client.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint8_t | N/A | endpoint | Endpoint that is being initialized Ver.: always |
Client initialization.
emberAfPrepaymentClusterClientManufacturerSpecificAttributeChangedCallback#
void emberAfPrepaymentClusterClientManufacturerSpecificAttributeChangedCallback (uint8_t endpoint, EmberAfAttributeId attributeId, uint16_t manufacturerCode)
Called when the prepayment cluster client manufacturer -specific attribute has changed.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint8_t | N/A | endpoint | Endpoint that is being initialized Ver.: always |
EmberAfAttributeId | N/A | attributeId | Attribute that changed Ver.: always |
uint16_t | N/A | manufacturerCode | Manufacturer Code of the attribute that changed Ver.: always |
Called when the prepayment cluster client manufacturer -specific attribute has changed.
emberAfPrepaymentClusterClientMessageSentCallback#
void emberAfPrepaymentClusterClientMessageSentCallback (EmberOutgoingMessageType type, uint16_t indexOrDestination, EmberApsFrame * apsFrame, uint16_t msgLen, uint8_t * message, EmberStatus status)
Called when the prepayment cluster client message was sent.
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberOutgoingMessageType | N/A | type | The type of message sent Ver.: always |
uint16_t | N/A | indexOrDestination | The destination or address to which the message was sent Ver.: always |
EmberApsFrame * | N/A | apsFrame | The APS frame for the message Ver.: always |
uint16_t | N/A | msgLen | The length of the message Ver.: always |
uint8_t * | N/A | message | The message that was sent Ver.: always |
EmberStatus | N/A | status | The status of the sent message Ver.: always |
Client message was sent.
emberAfPrepaymentClusterClientPreAttributeChangedCallback#
EmberAfStatus emberAfPrepaymentClusterClientPreAttributeChangedCallback (uint8_t endpoint, EmberAfAttributeId attributeId, EmberAfAttributeType attributeType, uint8_t size, uint8_t * value)
Called when the prepayment cluster client pre attribute has changed.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint8_t | N/A | endpoint | Endpoint that is being initialized Ver.: always |
EmberAfAttributeId | N/A | attributeId | Attribute to be changed Ver.: always |
EmberAfAttributeType | N/A | attributeType | Attribute type Ver.: always |
uint8_t | N/A | size | Attribute size Ver.: always |
uint8_t * | N/A | value | Attribute value Ver.: always |
Client pre attribute has changed.
emberAfPrepaymentClusterClientTickCallback#
void emberAfPrepaymentClusterClientTickCallback (uint8_t endpoint)
Called upon the prepayment cluster client tick.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint8_t | N/A | endpoint | Endpoint that is being served Ver.: always |
Client tick.