Skip to content

Commit dafd90b

Browse files
committed
refactor NetworkConfiguratorClass
add error state to NetworkConfigurator add new errors messages rename the updateNetworkOptions method into scanNetworkOptions improve error animation handling complete list of not compatible boards fix agentsManager polling on Configured state of NetworkConfigurator
1 parent d7e47ca commit dafd90b

File tree

6 files changed

+167
-173
lines changed

6 files changed

+167
-173
lines changed

examples/provisioning/provisioning.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ void setup() {
138138
}
139139
}
140140

141-
NetworkConfigurator.updateNetworkOptions();
141+
NetworkConfigurator.scanNetworkOptions();
142142
NetworkConfigurator.begin();
143143
ClaimingHandler.begin(&secureElement, &uhwid, clearStoredCredentials);
144144

src/ConfiguratorAgents/AgentsManager.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,6 @@ AgentsManagerStates AgentsManagerClass::handleSendInitialStatus() {
227227
DEBUG_WARNING("AgentsManagerClass::%s failed to send initial status", __FUNCTION__);
228228
return nextState;
229229
}
230-
_initStatusMsg = StatusMessage::NONE;
231230
}
232231
nextState = AgentsManagerStates::SEND_NETWORK_OPTIONS;
233232
return nextState;

src/ConfiguratorAgents/MessagesDefinitions.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ enum class StatusMessage {
3131
SCAN_DISABLED_CONNECTING = -100,
3232
HW_ERROR_CONN_MODULE = -101,
3333
HW_CONN_MODULE_STOPPED = -102,
34+
HW_ERROR_SE_BEGIN = -150,
35+
HW_ERROR_SE_CONFIG = -151,
36+
HW_ERROR_SE_LOCK = -152,
37+
ERROR_GENERATING_UHWID = -160,
3438
ERROR_STORAGE_BEGIN = -200,
39+
FAIL_TO_PARTITION_STORAGE = -201,
3540
ERROR = -255
3641
};
3742

0 commit comments

Comments
 (0)