@@ -493,7 +493,7 @@ NetworkConfiguratorStates NetworkConfiguratorClass::handleReadStorage() {
493
493
494
494
NetworkConfiguratorStates NetworkConfiguratorClass::handleWaitingForConf () {
495
495
NetworkConfiguratorStates nextState = _state;
496
- _agentsManager->poll ();
496
+ _agentsManager->update ();
497
497
bool connecting = false ;
498
498
switch (_receivedEvent) {
499
499
case NetworkConfiguratorEvents::SCAN_REQ: scanNetworkOptions (); break ;
@@ -517,7 +517,7 @@ NetworkConfiguratorStates NetworkConfiguratorClass::handleWaitingForConf() {
517
517
}
518
518
519
519
NetworkConfiguratorStates NetworkConfiguratorClass::handleConnecting () {
520
- _agentsManager->poll (); // To keep alive the connection with the configurator
520
+ _agentsManager->update (); // To keep alive the connection with the configurator
521
521
StatusMessage err;
522
522
ConnectionResult res = connectToNetwork (&err);
523
523
@@ -539,7 +539,7 @@ NetworkConfiguratorStates NetworkConfiguratorClass::handleConfigured() {
539
539
_ledFeedback->setMode (LEDFeedbackClass::LEDFeedbackMode::PEER_CONNECTED);
540
540
}
541
541
542
- _agentsManager->poll ();
542
+ _agentsManager->update ();
543
543
// If the agent manager changes state, it means that user is trying to configure the network, so the network configurator should change state
544
544
if (_agentsManager->isConfigInProgress () && !configInprogress) {
545
545
scanNetworkOptions ();
@@ -560,7 +560,7 @@ NetworkConfiguratorStates NetworkConfiguratorClass::handleUpdatingConfig() {
560
560
}
561
561
562
562
NetworkConfiguratorStates NetworkConfiguratorClass::handleErrorState () {
563
- _agentsManager->poll ();
563
+ _agentsManager->update ();
564
564
return NetworkConfiguratorStates::ERROR;
565
565
}
566
566
0 commit comments