Zigbee Protocol Controller 1.6.0
ZigPC OTA Internal functions

This header contains the private definitions and internal functionality associated with over-the-air upgrades . All definitions and functions here are required for manipulating or configuring OTA Updates. More...

Functions

sl_status_t ota_zigbee_register_observers ()
 ota_zigbee_register_observers Registers the observers for OTA events from the zigpc_gateway More...
 
void on_ota_zigbee_upgrade_start (void *data)
 on_ota_zigbee_upgrade_start Callback for the start of an OTA upgrade More...
 
void on_ota_zigbee_upgrade_complete (void *data)
 on_ota_zigbee_upgrade_complete Callback for the completion of an OTA upgrade More...
 
void on_remove_unsubscribe_ota_listeners (void *data)
 on_remove_unsubscribe_ota_listeners Callback for unsubscribing ota image listeners on a device remove event More...
 
void zigpc_ota_zigbee_image_available (uic_ota::meta_t ota_meta_info)
 zigpc_ota_zigbee_image_available Callback for a new ota image available More...
 
void zigpc_ota_zigbee_image_ready (const uic_ota::image_ready_result_t result, const std::string &file_path)
 zigpc_ota_zigbee_image_ready Callback for a new image has been downloaded and is ready More...
 

Variables

static const unsigned long ZIGPC_DEFAULT_OTA_CACHE_SIZE = 10 * 1024 * 1024
 
static const unsigned int ZIGPC_DEFAULT_OTA_TIMEOUT = 60 * 60
 

Detailed Description

This header contains the private definitions and internal functionality associated with over-the-air upgrades . All definitions and functions here are required for manipulating or configuring OTA Updates.

Function Documentation

◆ on_ota_zigbee_upgrade_complete()

void on_ota_zigbee_upgrade_complete ( void *  data)

on_ota_zigbee_upgrade_complete Callback for the completion of an OTA upgrade

◆ on_ota_zigbee_upgrade_start()

void on_ota_zigbee_upgrade_start ( void *  data)

on_ota_zigbee_upgrade_start Callback for the start of an OTA upgrade

◆ on_remove_unsubscribe_ota_listeners()

void on_remove_unsubscribe_ota_listeners ( void *  data)

on_remove_unsubscribe_ota_listeners Callback for unsubscribing ota image listeners on a device remove event

◆ ota_zigbee_register_observers()

sl_status_t ota_zigbee_register_observers ( )

ota_zigbee_register_observers Registers the observers for OTA events from the zigpc_gateway

Returns
SL_STATUS_OK if able to successfuly register the observers

◆ zigpc_ota_zigbee_image_available()

void zigpc_ota_zigbee_image_available ( uic_ota::meta_t  ota_meta_info)

zigpc_ota_zigbee_image_available Callback for a new ota image available

Parameters
ota_meta_info- meta information about OTA upgrade

◆ zigpc_ota_zigbee_image_ready()

void zigpc_ota_zigbee_image_ready ( const uic_ota::image_ready_result_t  result,
const std::string &  file_path 
)

zigpc_ota_zigbee_image_ready Callback for a new image has been downloaded and is ready

Parameters
result- the status of the download
file_path- the path where the image was downloaded

Variable Documentation

◆ ZIGPC_DEFAULT_OTA_CACHE_SIZE

const unsigned long ZIGPC_DEFAULT_OTA_CACHE_SIZE = 10 * 1024 * 1024
static

◆ ZIGPC_DEFAULT_OTA_TIMEOUT

const unsigned int ZIGPC_DEFAULT_OTA_TIMEOUT = 60 * 60
static