Price Client#

Callbacks for Price Client Component.

Callbacks#

void
sl_zigbee_af_price_cluster_client_attribute_changed_cb(uint8_t endpoint, sl_zigbee_af_attribute_id_t attributeId)

Price cluster client attribute changed.

void
sl_zigbee_af_price_cluster_client_default_response_cb(uint8_t endpoint, uint8_t commandId, sl_zigbee_af_status_t status)

Price cluster client default response.

void

Initialize the price cluster client.

void
sl_zigbee_af_price_cluster_client_manufacturer_specific_attribute_changed_cb(uint8_t endpoint, sl_zigbee_af_attribute_id_t attributeId, uint16_t manufacturerCode)

Price cluster client manufacturer-specific attribute changed.

void
sl_zigbee_af_price_cluster_client_message_sent_cb(sl_zigbee_outgoing_message_type_t type, uint16_t indexOrDestination, sl_zigbee_aps_frame_t *apsFrame, uint16_t msgLen, uint8_t *message, sl_status_t status)

Send the price cluster client message.

sl_zigbee_af_price_cluster_client_pre_attribute_changed_cb(uint8_t endpoint, sl_zigbee_af_attribute_id_t attributeId, sl_zigbee_af_attribute_type_t attributeType, uint8_t size, uint8_t *value)

Price cluster client pre attribute changed.

void

Price cluster client tick.

void
sl_zigbee_af_price_client_price_started_cb(sl_zigbee_af_plugin_price_client_price_t *price)

Start price.

void
sl_zigbee_af_price_client_price_expired_cb(sl_zigbee_af_plugin_price_client_price_t *price)

Expire price.

uint8_t

Pending CPP event.

Callbacks Documentation#

sl_zigbee_af_price_cluster_client_attribute_changed_cb#

void sl_zigbee_af_price_cluster_client_attribute_changed_cb (uint8_t endpoint, sl_zigbee_af_attribute_id_t attributeId)

Price cluster client attribute changed.

Parameters
TypeDirectionArgument NameDescription
uint8_tN/Aendpoint

Endpoint that is being initialized Ver.: always

sl_zigbee_af_attribute_id_tN/AattributeId

Attribute that changed Ver.: always


sl_zigbee_af_price_cluster_client_default_response_cb#

void sl_zigbee_af_price_cluster_client_default_response_cb (uint8_t endpoint, uint8_t commandId, sl_zigbee_af_status_t status)

Price cluster client default response.

Parameters
TypeDirectionArgument NameDescription
uint8_tN/Aendpoint

Destination endpoint Ver.: always

uint8_tN/AcommandId

Command id Ver.: always

sl_zigbee_af_status_tN/Astatus

Status in default response Ver.: always

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


sl_zigbee_af_price_cluster_client_init_cb#

void sl_zigbee_af_price_cluster_client_init_cb (uint8_t endpoint)

Initialize the price cluster client.

Parameters
TypeDirectionArgument NameDescription
uint8_tN/Aendpoint

Endpoint that is being initialized Ver.: always


sl_zigbee_af_price_cluster_client_manufacturer_specific_attribute_changed_cb#

void sl_zigbee_af_price_cluster_client_manufacturer_specific_attribute_changed_cb (uint8_t endpoint, sl_zigbee_af_attribute_id_t attributeId, uint16_t manufacturerCode)

Price cluster client manufacturer-specific attribute changed.

Parameters
TypeDirectionArgument NameDescription
uint8_tN/Aendpoint

Endpoint that is being initialized Ver.: always

sl_zigbee_af_attribute_id_tN/AattributeId

Attribute that changed Ver.: always

uint16_tN/AmanufacturerCode

Manufacturer Code of the attribute that changed Ver.: always


sl_zigbee_af_price_cluster_client_message_sent_cb#

void sl_zigbee_af_price_cluster_client_message_sent_cb (sl_zigbee_outgoing_message_type_t type, uint16_t indexOrDestination, sl_zigbee_aps_frame_t * apsFrame, uint16_t msgLen, uint8_t * message, sl_status_t status)

Send the price cluster client message.

Parameters
TypeDirectionArgument NameDescription
sl_zigbee_outgoing_message_type_tN/Atype

The type of message sent Ver.: always

uint16_tN/AindexOrDestination

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

sl_zigbee_aps_frame_t *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

sl_status_tN/Astatus

The status of the sent message Ver.: always


sl_zigbee_af_price_cluster_client_pre_attribute_changed_cb#

sl_zigbee_af_status_t sl_zigbee_af_price_cluster_client_pre_attribute_changed_cb (uint8_t endpoint, sl_zigbee_af_attribute_id_t attributeId, sl_zigbee_af_attribute_type_t 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

sl_zigbee_af_attribute_id_tN/AattributeId

Attribute to be changed Ver.: always

sl_zigbee_af_attribute_type_tN/AattributeType

Attribute type Ver.: always

uint8_tN/Asize

Attribute size Ver.: always

uint8_t *N/Avalue

Attribute value Ver.: always


sl_zigbee_af_price_cluster_client_tick_cb#

void sl_zigbee_af_price_cluster_client_tick_cb (uint8_t endpoint)

Price cluster client tick.

Parameters
TypeDirectionArgument NameDescription
uint8_tN/Aendpoint

Endpoint that is being served Ver.: always


sl_zigbee_af_price_client_price_started_cb#

void sl_zigbee_af_price_client_price_started_cb (sl_zigbee_af_plugin_price_client_price_t * price)

Start price.

Parameters
TypeDirectionArgument NameDescription
sl_zigbee_af_plugin_price_client_price_t *N/Aprice

The price that has started. Ver.: always

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


sl_zigbee_af_price_client_price_expired_cb#

void sl_zigbee_af_price_client_price_expired_cb (sl_zigbee_af_plugin_price_client_price_t * price)

Expire price.

Parameters
TypeDirectionArgument NameDescription
sl_zigbee_af_plugin_price_client_price_t *N/Aprice

The price that has expired. Ver.: always

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


sl_zigbee_af_price_client_pending_cpp_event_cb#

uint8_t sl_zigbee_af_price_client_pending_cpp_event_cb (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.