Gas Proxy Function#
Callbacks for Gas Proxy Function Component.
Callbacks#
Notify the application that the Non Tap Off Message (Non-TOM) has been handled by the mirror endpoint.
Notify the application of an Alert that should be sent to the WAN.
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.
Query the application regarding the processing of the current GBCS-specific command.
Validate the incoming ZCL command.
Called when the GPF receives a PublishSeasons command with an unknown week ID in one of the seasons.
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.
N/A | gbzCommandsResponse | Ver.: always |
N/A | gbzCommandsResponseLength | 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.
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.
N/A | alertCode | The 16 bit alert code as defined by GBCS Ver.: always |
N/A | gbzAlert | Buffer containing the GBZ formatted Alert Ver.: always |
N/A | gbzAlertLength | 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.
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.
N/A | gpfMessage | Ver.: always |
N/A | zclClusterCommand | 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.
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.
N/A | gpfMessage | Ver.: always |
N/A | zclClusterCommand | 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.
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.
N/A | cmd | Ver.: always |
N/A | messageCode | 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.
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.
N/A | issuerCalendarId | The calendar ID associated with these seasons. Ver.: always |
N/A | seasonEntries | The season entries for this publish command. Ver.: always |
N/A | seasonEntriesLength | The length of the season entries. Ver.: always |
N/A | unknownWeekIdSeasonsMask | 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.
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.
N/A | issuerCalendarId | The calendar ID associated with these special days. Ver.: always |
N/A | specialDayEntries | The special day entries for this publish command. Ver.: always |
N/A | specialDayEntriesLength | The length of the special day entries. Ver.: always |
N/A | unknownDayIdMask | 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.
214
of file app/framework/plugin/gas-proxy-function/gas-proxy-function.h