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.
N/A | dest | The block length. |
N/A | endpoint | The manufacturer ID. |
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.
70
of file app/framework/plugin/ota-server/ota-server.h
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.
N/A | actualLength | The block length. |
N/A | manufacturerId | The manufacturer ID. |
N/A | imageTypeId | The image Type ID. |
N/A | firmwareVersion | Firmware Version. |
This function will be called when a block is sent to a device.
83
of file app/framework/plugin/ota-server/ota-server.h
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.
N/A | manufacturerId | The manufacturer ID. |
N/A | imageTypeId | The image Type ID. |
N/A | firmwareVersion | Firmware Version. |
N/A | maxDataSize | Maximum data size. |
N/A | offset | Offset. |
This function will be called when an update has started.
99
of file app/framework/plugin/ota-server/ota-server.h
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.
N/A | manufacturerId | The manufacturer ID. |
N/A | imageTypeId | The image Type ID. |
N/A | firmwareVersion | Firmware Version. |
N/A | source | The source node ID. |
N/A | status | An update status. |
This function will be called when an OTA update has finished.
115
of file app/framework/plugin/ota-server/ota-server.h