OTA Server#

Callbacks for OTA Server Component.

Callbacks#

void
emberAfOtaServerSendUpgradeCommandCallback(EmberNodeId dest, uint8_t endpoint, const EmberAfOtaImageId *id)

Call when a block is sent to a device.

void
emberAfPluginOtaServerBlockSentCallback(uint8_t actualLength, uint16_t manufacturerId, uint16_t imageTypeId, uint32_t firmwareVersion)

Call when a block is sent to a device.

void
emberAfPluginOtaServerUpdateStartedCallback(uint16_t manufacturerId, uint16_t imageTypeId, uint32_t firmwareVersion, uint8_t maxDataSize, uint32_t offset)

Call when an update has started.

void
emberAfPluginOtaServerUpdateCompleteCallback(uint16_t manufacturerId, uint16_t imageTypeId, uint32_t firmwareVersion, EmberNodeId source, uint8_t status)

Call when an OTA update has finished.

Callbacks Documentation#

emberAfOtaServerSendUpgradeCommandCallback#

void emberAfOtaServerSendUpgradeCommandCallback (EmberNodeId dest, uint8_t endpoint, const EmberAfOtaImageId * id, firmwareVersion)

Call when a block is sent to a device.

Parameters
TypeDirectionArgument NameDescription
EmberNodeIdN/Adest

The block length.

uint8_tN/Aendpoint

The manufacturer ID.

const EmberAfOtaImageId *N/Aid

The image Type ID.

N/AfirmwareVersion

Firmware Version.

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


emberAfPluginOtaServerBlockSentCallback#

void emberAfPluginOtaServerBlockSentCallback (uint8_t actualLength, uint16_t manufacturerId, uint16_t imageTypeId, uint32_t firmwareVersion)

Call when a block is sent to a device.

Parameters
TypeDirectionArgument NameDescription
uint8_tN/AactualLength

The block length.

uint16_tN/AmanufacturerId

The manufacturer ID.

uint16_tN/AimageTypeId

The image Type ID.

uint32_tN/AfirmwareVersion

Firmware Version.

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


emberAfPluginOtaServerUpdateStartedCallback#

void emberAfPluginOtaServerUpdateStartedCallback (uint16_t manufacturerId, uint16_t imageTypeId, uint32_t firmwareVersion, uint8_t maxDataSize, uint32_t offset)

Call when an update has started.

Parameters
TypeDirectionArgument NameDescription
uint16_tN/AmanufacturerId

The manufacturer ID.

uint16_tN/AimageTypeId

The image Type ID.

uint32_tN/AfirmwareVersion

Firmware Version.

uint8_tN/AmaxDataSize

Maximum data size.

uint32_tN/Aoffset

Offset.

This function will be called when an update has started.


emberAfPluginOtaServerUpdateCompleteCallback#

void emberAfPluginOtaServerUpdateCompleteCallback (uint16_t manufacturerId, uint16_t imageTypeId, uint32_t firmwareVersion, EmberNodeId source, uint8_t status)

Call when an OTA update has finished.

Parameters
TypeDirectionArgument NameDescription
uint16_tN/AmanufacturerId

The manufacturer ID.

uint16_tN/AimageTypeId

The image Type ID.

uint32_tN/AfirmwareVersion

Firmware Version.

EmberNodeIdN/Asource

The source node ID.

uint8_tN/Astatus

An update status.

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