OTA Server#

Callbacks for OTA Server Component.

Callbacks#

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)

Call when a block is sent to a device.

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.

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.

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.

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.

Parameters
N/Adest

The block length.

N/Aendpoint

The manufacturer ID.

N/Aid

The image Type ID.

N/AfirmwareVersion

Firmware Version.

This function will be called when a block is sent to a device.


Definition at line 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.

Parameters
N/AactualLength

The block length.

N/AmanufacturerId

The manufacturer ID.

N/AimageTypeId

The image Type ID.

N/AfirmwareVersion

Firmware Version.

This function will be called when a block is sent to a device.


Definition at line 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.

Parameters
N/AmanufacturerId

The manufacturer ID.

N/AimageTypeId

The image Type ID.

N/AfirmwareVersion

Firmware Version.

N/AmaxDataSize

Maximum data size.

N/Aoffset

Offset.

This function will be called when an update has started.


Definition at line 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.

Parameters
N/AmanufacturerId

The manufacturer ID.

N/AimageTypeId

The image Type ID.

N/AfirmwareVersion

Firmware Version.

N/Asource

The source node ID.

N/Astatus

An update status.

This function will be called when an OTA update has finished.


Definition at line 115 of file app/framework/plugin/ota-server/ota-server.h