Comms Hub#
Callbacks for Comms Hub Component.
Callbacks#
Accept a tunnel.
Notify that tunnel data was received.
Send.
Receive.
Alert WAN.
Tunnel opened.
Callbacks Documentation#
sli_zigbee_af_comms_hub_function_tunnel_accept_callback#
bool sli_zigbee_af_comms_hub_function_tunnel_accept_callback (sl_802154_long_addr_t deviceId)
Accept a tunnel.
N/A | deviceId | An identifier of the device from which a tunnel is requested |
Called by the tunnel manager when a tunnel is requested. Check the given device identifier should be checked against the Device Log to verify whether tunnels from the device should be accepted or not.
Returns
True if the tunnel should be allowed, false otherwise.
151
of file app/framework/plugin/comms-hub-function/comms-hub-function.h
sli_zigbee_af_comms_hub_function_tunnel_data_received_callback#
void sli_zigbee_af_comms_hub_function_tunnel_data_received_callback (sl_802154_long_addr_t senderDeviceId, uint16_t length, uint8_t * payload)
Notify that tunnel data was received.
N/A | senderDeviceId | The identifier of the device from which the data was received. |
N/A | length | The length of the data received |
N/A | payload | Data received. |
Called by the tunnel manager when data is received over a tunnel. It is responsible for the implementation of the GET, GET_RESPONSE, PUT protocol used when communicating with a sleepy device.
164
of file app/framework/plugin/comms-hub-function/comms-hub-function.h
sl_zigbee_af_comms_hub_function_send_cb#
void sl_zigbee_af_comms_hub_function_send_cb (uint8_t status, sl_802154_long_addr_t destinationDeviceId, uint16_t dataLen, uint8_t * data)
Send.
N/A | status | The status of the message that was sent Ver.: always |
N/A | destinationDeviceId | The EUI64 of the destination device to which the data was sent Ver.: always |
N/A | dataLen | The length in octets of the data that was sent Ver.: always |
N/A | data | Buffer containing the raw octets of the data that was sent Ver.: always |
This callback is called by the Comms Hub Function (CHF) plugin to report the status of a message that was previously sent.
180
of file app/framework/plugin/comms-hub-function/comms-hub-function.h
sl_zigbee_af_comms_hub_function_received_cb#
void sl_zigbee_af_comms_hub_function_received_cb (sl_802154_long_addr_t senderDeviceId, uint16_t dataLen, uint8_t * data)
Receive.
N/A | senderDeviceId | The EUI64 of the sending device Ver.: always |
N/A | dataLen | The length in octets of the data Ver.: always |
N/A | data | Buffer containing the raw octets of the data Ver.: always |
This callback is called by the Comms Hub Function (CHF) plugin whenever a message is received.
194
of file app/framework/plugin/comms-hub-function/comms-hub-function.h
sl_zigbee_#
void sl_zigbee_ (uint16_t alertCode, uint8_t * gbzAlert, uint16_t gbzAlertLength)
Alert WAN.
N/A | alertCode | The 16 bit allert code as defined by GBCS Ver.: always |
N/A | gbzAlert | Buffer continaing the GBZ formatted Alert Ver.: always |
N/A | gbzAlertLength | The length in octets of the GBZ formatted Alert Ver.: always |
Notify the application of an Alert that should be sent to the WAN. The second argument is a pointer to the GBZ alert buffer. The application is responsible for freeing this buffer.
209
of file app/framework/plugin/comms-hub-function/comms-hub-function.h
sl_zigbee_af_comms_hub_function_tunnel_opened_cb#
void sl_zigbee_af_comms_hub_function_tunnel_opened_cb (sl_802154_long_addr_t remoteDeviceId)
Tunnel opened.
N/A | remoteDeviceId | The EUI64 of the remote device for which a tunnel is opened Ver.: always |
This function is called by the Comms Hub Function (CHF) plugin when a tunnel is opened.
221
of file app/framework/plugin/comms-hub-function/comms-hub-function.h