OTA Client#
API and Callbacks for the OTA Cluster Client Component.
Silicon Labs implementation of the Zigbee Over-the-air Bootload Client Cluster (a multi-hop, application bootloader). This implementation finds the OTA server in the network, periodically queries the server for a new image to download, downloads the data, and then waits for the server command to tell it to upgrade. Optionally, it can cryptographically verify the image before upgrade.
Modules#
API#
Set whether OTA clients use non TC servers.
Set whether OTA clients use non TC servers.
Return the current value of ignoreNonTrustCenter for OTA clients.
Set whether OTA Clients will permit firmware downgrades.
Return the current value of disableOtaDowngrades.
Variables#
Macros#
API Documentation#
emberAfOtaServerSendUpgradeRequest#
void emberAfOtaServerSendUpgradeRequest ( IgnoreNonTc)
Set whether OTA clients use non TC servers.
N/A | IgnoreNonTc | a bool determining whether client should ignore any non Trust Center OTA servers |
Sets the behavior of OTA clients when determining whether or not to use non Trust Center OTA servers and abort any download that is in progress.
171
of file app/framework/plugin/ota-client/ota-client.h
emberAfPluginOtaClientSetIgnoreNonTrustCenter#
void emberAfPluginOtaClientSetIgnoreNonTrustCenter (bool ignoreNonTc)
Set whether OTA clients use non TC servers.
N/A | ignoreNonTc | a bool determining whether client should ignore any non Trust Center OTA servers |
Sets the behavior of OTA clients when determining whether or not to use non Trust Center OTA servers and abort any download that is in progress.
182
of file app/framework/plugin/ota-client/ota-client.h
emberAfPluginOtaClientGetIgnoreNonTrustCenter#
bool emberAfPluginOtaClientGetIgnoreNonTrustCenter ()
Return the current value of ignoreNonTrustCenter for OTA clients.
187
of file app/framework/plugin/ota-client/ota-client.h
emberAfPluginSetDisableOtaDowngrades#
void emberAfPluginSetDisableOtaDowngrades (bool isDisabled)
Set whether OTA Clients will permit firmware downgrades.
N/A | isDisabled | A bool value indicating whether or not downgrades will be disabled |
195
of file app/framework/plugin/ota-client/ota-client.h
emberAfPluginGetDisableOtaDowngrades#
bool emberAfPluginGetDisableOtaDowngrades ()
Return the current value of disableOtaDowngrades.
200
of file app/framework/plugin/ota-client/ota-client.h
Variable Documentation#
sli_zigbee_af_ota_client_stopDownloadPercentage#
uint8_t sli_zigbee_af_ota_client_stopDownloadPercentage
163
of file app/framework/plugin/ota-client/ota-client.h
Macro Definition Documentation#
EMBER_AF_PLUGIN_OTA_CLIENT_DOWNLOAD_DELAY_MS#
#define EMBER_AF_PLUGIN_OTA_CLIENT_DOWNLOAD_DELAY_MSValue:
0L
66
of file app/framework/plugin/ota-client/ota-client.h
EMBER_AF_OTA_SERVER_DISCOVERY_DELAY_MS#
#define EMBER_AF_OTA_SERVER_DISCOVERY_DELAY_MSValue:
(2 * MINUTES_IN_MS)
76
of file app/framework/plugin/ota-client/ota-client.h
EMBER_AF_OTA_QUERY_DELAY_MS#
#define EMBER_AF_OTA_QUERY_DELAY_MSValue:
(5 * MINUTES_IN_MS)
85
of file app/framework/plugin/ota-client/ota-client.h
EMBER_AF_PLUGIN_OTA_CLIENT_QUERY_ERROR_THRESHOLD#
#define EMBER_AF_PLUGIN_OTA_CLIENT_QUERY_ERROR_THRESHOLDValue:
10
91
of file app/framework/plugin/ota-client/ota-client.h
EMBER_AF_PLUGIN_OTA_CLIENT_DOWNLOAD_ERROR_THRESHOLD#
#define EMBER_AF_PLUGIN_OTA_CLIENT_DOWNLOAD_ERROR_THRESHOLDValue:
10
97
of file app/framework/plugin/ota-client/ota-client.h
EMBER_AF_RUN_UPGRADE_REQUEST_DELAY_MS#
#define EMBER_AF_RUN_UPGRADE_REQUEST_DELAY_MSValue:
(10 * MINUTES_IN_MS)
106
of file app/framework/plugin/ota-client/ota-client.h
EMBER_AF_PLUGIN_OTA_CLIENT_UPGRADE_WAIT_THRESHOLD#
#define EMBER_AF_PLUGIN_OTA_CLIENT_UPGRADE_WAIT_THRESHOLDValue:
10
113
of file app/framework/plugin/ota-client/ota-client.h
EMBER_AF_PLUGIN_OTA_CLIENT_PAGE_REQUEST_SIZE#
#define EMBER_AF_PLUGIN_OTA_CLIENT_PAGE_REQUEST_SIZEValue:
1024
117
of file app/framework/plugin/ota-client/ota-client.h
EMBER_AF_OTA_CLIENT_PAGE_REQUEST_SPACING_MS#
#define EMBER_AF_OTA_CLIENT_PAGE_REQUEST_SPACING_MSValue:
50L
123
of file app/framework/plugin/ota-client/ota-client.h
EMBER_AF_PLUGIN_OTA_CLIENT_VERIFY_DELAY_MS#
#define EMBER_AF_PLUGIN_OTA_CLIENT_VERIFY_DELAY_MSValue:
10L
131
of file app/framework/plugin/ota-client/ota-client.h
NULL_EUI64#
#define NULL_EUI64Value:
{ 0, 0, 0, 0, 0, 0, 0, 0 }
134
of file app/framework/plugin/ota-client/ota-client.h
EMBER_AF_PLUGIN_OTA_CLIENT_SIGNER_EUI0#
#define EMBER_AF_PLUGIN_OTA_CLIENT_SIGNER_EUI0Value:
NULL_EUI64
138
of file app/framework/plugin/ota-client/ota-client.h
EMBER_AF_PLUGIN_OTA_CLIENT_SIGNER_EUI1#
#define EMBER_AF_PLUGIN_OTA_CLIENT_SIGNER_EUI1Value:
NULL_EUI64
142
of file app/framework/plugin/ota-client/ota-client.h
EMBER_AF_PLUGIN_OTA_CLIENT_SIGNER_EUI2#
#define EMBER_AF_PLUGIN_OTA_CLIENT_SIGNER_EUI2Value:
NULL_EUI64
146
of file app/framework/plugin/ota-client/ota-client.h
SECONDS_IN_MS#
#define SECONDS_IN_MSValue:
(1000L)
149
of file app/framework/plugin/ota-client/ota-client.h
MINUTES_IN_MS#
#define MINUTES_IN_MSValue:
(60 * SECONDS_IN_MS)
150
of file app/framework/plugin/ota-client/ota-client.h
HOURS_IN_MS#
#define HOURS_IN_MSValue:
(60 * MINUTES_IN_MS)
151
of file app/framework/plugin/ota-client/ota-client.h
EMBER_AF_INVALID_HARDWARE_VERSION#
#define EMBER_AF_INVALID_HARDWARE_VERSIONValue:
0xFFFF
158
of file app/framework/plugin/ota-client/ota-client.h