Gas Proxy Function#

Callbacks for Gas Proxy Function Component.

Callbacks#

void
sl_zigbee_af_gas_proxy_function_non_tap_off_message_handler_completed_cb(uint8_t *gbzCommandsResponse, uint16_t gbzCommandsResponseLength)

Notify the application that the Non Tap Off Message (Non-TOM) has been handled by the mirror endpoint.

void
sl_zigbee_af_gas_proxy_function_alert_w_a_n_cb(uint16_t alertCode, uint8_t *gbzAlert, uint16_t gbzAlertLength)

Notify the application of an Alert that should be sent to the WAN.

void
sl_zigbee_af_gas_proxy_function_tap_off_message_future_command_ignored_cb(const sl_zigbee_af_gpf_message_t *gpfMessage, const sl_zigbee_af_cluster_command_t *zclClusterCommand)

Notify the application that an elemental ZCL command, embedded within the Tap Off Message (TOM), has been ignored by the GPF as it is a future dated command.

bool
sl_zigbee_af_gas_proxy_function_data_log_access_request_cb(const sl_zigbee_af_gpf_message_t *gpfMessage, const sl_zigbee_af_cluster_command_t *zclClusterCommand)

Query the application regarding the processing of the current GBCS-specific command.

sl_zigbee_af_gpf_zcl_command_permission_t
sl_zigbee_af_gas_proxy_function_validate_incoming_zcl_command_cb(const sl_zigbee_af_cluster_command_t *cmd, uint16_t messageCode)

Validate the incoming ZCL command.

void
sl_zigbee_af_gas_proxy_function_unknown_season_week_id_cb(uint32_t issuerCalendarId, uint8_t *seasonEntries, uint8_t seasonEntriesLength, uint8_t unknownWeekIdSeasonsMask)

Called when the GPF receives a PublishSeasons command with an unknown week ID in one of the seasons.

void
sl_zigbee_af_gas_proxy_function_unknown_special_days_day_id_cb(uint32_t issuerCalendarId, uint8_t *specialDayEntries, uint8_t specialDayEntriesLength, uint8_t unknownDayIdMask)

Called when the GPF receives a PublishSpecialDays command with an unknown day ID for one of the special days.

Callbacks Documentation#

sl_zigbee_af_gas_proxy_function_non_tap_off_message_handler_completed_cb#

void sl_zigbee_af_gas_proxy_function_non_tap_off_message_handler_completed_cb (uint8_t * gbzCommandsResponse, uint16_t gbzCommandsResponseLength)

Notify the application that the Non Tap Off Message (Non-TOM) has been handled by the mirror endpoint.

Parameters
N/AgbzCommandsResponse

Ver.: always

N/AgbzCommandsResponseLength

Ver.: always

This callback is invoked when the the Non Tap Off Message have been processed. The first argument is a pointer to the GBZ commands response buffer. The application is responsible for freeing this buffer.


Definition at line 121 of file app/framework/plugin/gas-proxy-function/gas-proxy-function.h

sl_zigbee_af_gas_proxy_function_alert_w_a_n_cb#

void sl_zigbee_af_gas_proxy_function_alert_w_a_n_cb (uint16_t alertCode, uint8_t * gbzAlert, uint16_t gbzAlertLength)

Notify the application of an Alert that should be sent to the WAN.

Parameters
N/AalertCode

The 16 bit alert code as defined by GBCS Ver.: always

N/AgbzAlert

Buffer containing the GBZ formatted Alert Ver.: always

N/AgbzAlertLength

The length in octets of the GBZ formatted Alert Ver.: always

The second argument is a pointer to the BGZ alert buffer. The application is responsible for freeing this buffer.


Definition at line 133 of file app/framework/plugin/gas-proxy-function/gas-proxy-function.h

sl_zigbee_af_gas_proxy_function_tap_off_message_future_command_ignored_cb#

void sl_zigbee_af_gas_proxy_function_tap_off_message_future_command_ignored_cb (const sl_zigbee_af_gpf_message_t * gpfMessage, const sl_zigbee_af_cluster_command_t * zclClusterCommand)

Notify the application that an elemental ZCL command, embedded within the Tap Off Message (TOM), has been ignored by the GPF as it is a future dated command.

Parameters
N/AgpfMessage

Ver.: always

N/AzclClusterCommand

Ver.: always

The application can use the callback to store the discarded command for later retrieval. When the future dated command becomes active on the GSME, it will inform the CommsHub about the activation via an Alert message. The CommsHub should be able to correlate the matching messages and pass the previously stored ZCL commands to the TOM message handler for processing.


Definition at line 150 of file app/framework/plugin/gas-proxy-function/gas-proxy-function.h

sl_zigbee_af_gas_proxy_function_data_log_access_request_cb#

bool sl_zigbee_af_gas_proxy_function_data_log_access_request_cb (const sl_zigbee_af_gpf_message_t * gpfMessage, const sl_zigbee_af_cluster_command_t * zclClusterCommand)

Query the application regarding the processing of the current GBCS-specific command.

Parameters
N/AgpfMessage

Ver.: always

N/AzclClusterCommand

Ver.: always

Depending on the vendor-specific information, such as the Tenancy attribute in the Device Management Cluster, the callback's return value determines whether the current command gets processed or not. With a return value of true, the plugin will process the message. Otherwise, the plugin will reject the message.


Definition at line 164 of file app/framework/plugin/gas-proxy-function/gas-proxy-function.h

sl_zigbee_af_gas_proxy_function_validate_incoming_zcl_command_cb#

sl_zigbee_af_gpf_zcl_command_permission_t sl_zigbee_af_gas_proxy_function_validate_incoming_zcl_command_cb (const sl_zigbee_af_cluster_command_t * cmd, uint16_t messageCode)

Validate the incoming ZCL command.

Parameters
N/Acmd

Ver.: always

N/AmessageCode

Ver.: always

Query the application to check if a specific ZCL command should be processed given the UseCase # and ZCL command payload information. This function should capture the behavior detailed by the GBCS Use Case documentation. See sl_zigbee_af_gpf_zcl_command_permission_t enum for specific return data types.


Definition at line 177 of file app/framework/plugin/gas-proxy-function/gas-proxy-function.h

sl_zigbee_af_gas_proxy_function_unknown_season_week_id_cb#

void sl_zigbee_af_gas_proxy_function_unknown_season_week_id_cb (uint32_t issuerCalendarId, uint8_t * seasonEntries, uint8_t seasonEntriesLength, uint8_t unknownWeekIdSeasonsMask)

Called when the GPF receives a PublishSeasons command with an unknown week ID in one of the seasons.

Parameters
N/AissuerCalendarId

The calendar ID associated with these seasons. Ver.: always

N/AseasonEntries

The season entries for this publish command. Ver.: always

N/AseasonEntriesLength

The length of the season entries. Ver.: always

N/AunknownWeekIdSeasonsMask

A mask where bit N indicates that the Nth season entry contains an unknown week ID reference. Ver.: always

The callback contains a mask, unknownWeekIdSeasonsMask, with bits set corresponding to season entries that were not published because of an unknown week ID reference.


Definition at line 194 of file app/framework/plugin/gas-proxy-function/gas-proxy-function.h

sl_zigbee_af_gas_proxy_function_unknown_special_days_day_id_cb#

void sl_zigbee_af_gas_proxy_function_unknown_special_days_day_id_cb (uint32_t issuerCalendarId, uint8_t * specialDayEntries, uint8_t specialDayEntriesLength, uint8_t unknownDayIdMask)

Called when the GPF receives a PublishSpecialDays command with an unknown day ID for one of the special days.

Parameters
N/AissuerCalendarId

The calendar ID associated with these special days. Ver.: always

N/AspecialDayEntries

The special day entries for this publish command. Ver.: always

N/AspecialDayEntriesLength

The length of the special day entries. Ver.: always

N/AunknownDayIdMask

A mask where bit N indicates that the Nth special day entry contains an unknown day ID reference. Ver.: always

The callback contains a mask, unknownDayIdMask, with bits set corresponding to special day entries that were not published because of an unknown day ID reference.


Definition at line 214 of file app/framework/plugin/gas-proxy-function/gas-proxy-function.h