Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit c80a62b

Browse files
committed
Software Update Manager: Address review comments
-- Address review comments and minor cosmetic issues -- Retries are decoupled from scheduled queries. Retries will kick in when a software update fails upto a max. of WEAVE_DEVICE_CONFIG_SOFTWARE_UPDATE_MAX_RETRIES. After max retries, revert to schedule queries if enabled else do nothing till application manually triggers software update. -- Corner case: Software Update is aborted by the application while handling an event callback. Test if attempt was aborted after calling the event handler. If aborted, set error to WEAVE_DEVICE_ERROR_SOFTWARE_UPDATE_ABORTED and handle it appropriately in SoftwareUpdateFailed.
1 parent e8fbede commit c80a62b

11 files changed

+723
-523
lines changed

src/adaptations/device-layer/ESP32/ESP32Config.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ const ESP32Config::Key ESP32Config::kConfigKey_GroupKeyIndex = { kConf
5555
const ESP32Config::Key ESP32Config::kConfigKey_LastUsedEpochKeyId = { kConfigNamespace_WeaveConfig, "last-ek-id" };
5656
const ESP32Config::Key ESP32Config::kConfigKey_FailSafeArmed = { kConfigNamespace_WeaveConfig, "fail-safe-armed" };
5757
const ESP32Config::Key ESP32Config::kConfigKey_WiFiStationSecType = { kConfigNamespace_WeaveConfig, "sta-sec-type" };
58+
const ESP32Config::Key ESP32Config::kConfigKey_CertBodyId = { kConfigNamespace_WeaveConfig, "cert-body-id" };
5859

5960
// Prefix used for NVS keys that contain Weave group encryption keys.
6061
const char ESP32Config::kGroupKeyNamePrefix[] = "gk-";

0 commit comments

Comments
 (0)