OTA Server#
Callbacks for OTA Server Component.
Callbacks#
Call when a block is sent to a device.
Call when a block is sent to a device.
Call when an update has started.
Call when an OTA update has finished.
Callbacks Documentation#
sl_zigbee_af_ota_server_send_upgrade_command_cb#
void sl_zigbee_af_ota_server_send_upgrade_command_cb (sl_802154_short_addr_t dest, uint8_t endpoint, const sl_zigbee_af_ota_image_id_t * id, firmwareVersion)
Call when a block is sent to a device.
Type | Direction | Argument Name | Description |
---|---|---|---|
sl_802154_short_addr_t | N/A | dest | The block length. |
uint8_t | N/A | endpoint | The manufacturer ID. |
const sl_zigbee_af_ota_image_id_t * | N/A | id | The image Type ID. |
N/A | firmwareVersion | Firmware Version. |
This function will be called when a block is sent to a device.
sl_zigbee_af_ota_server_block_sent_cb#
void sl_zigbee_af_ota_server_block_sent_cb (uint8_t actualLength, uint16_t manufacturerId, uint16_t imageTypeId, uint32_t firmwareVersion)
Call when a block is sent to a device.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint8_t | N/A | actualLength | The block length. |
uint16_t | N/A | manufacturerId | The manufacturer ID. |
uint16_t | N/A | imageTypeId | The image Type ID. |
uint32_t | N/A | firmwareVersion | Firmware Version. |
This function will be called when a block is sent to a device.
sl_zigbee_af_ota_server_update_started_cb#
void sl_zigbee_af_ota_server_update_started_cb (uint16_t manufacturerId, uint16_t imageTypeId, uint32_t firmwareVersion, uint8_t maxDataSize, uint32_t offset)
Call when an update has started.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint16_t | N/A | manufacturerId | The manufacturer ID. |
uint16_t | N/A | imageTypeId | The image Type ID. |
uint32_t | N/A | firmwareVersion | Firmware Version. |
uint8_t | N/A | maxDataSize | Maximum data size. |
uint32_t | N/A | offset | Offset. |
This function will be called when an update has started.
sl_zigbee_af_ota_server_update_complete_cb#
void sl_zigbee_af_ota_server_update_complete_cb (uint16_t manufacturerId, uint16_t imageTypeId, uint32_t firmwareVersion, sl_802154_short_addr_t source, uint8_t status)
Call when an OTA update has finished.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint16_t | N/A | manufacturerId | The manufacturer ID. |
uint16_t | N/A | imageTypeId | The image Type ID. |
uint32_t | N/A | firmwareVersion | Firmware Version. |
sl_802154_short_addr_t | N/A | source | The source node ID. |
uint8_t | N/A | status | An update status. |
This function will be called when an OTA update has finished.