@@ -493,7 +493,7 @@ NetworkConfiguratorStates NetworkConfiguratorClass::handleReadStorage() {
493493
494494NetworkConfiguratorStates NetworkConfiguratorClass::handleWaitingForConf () {
495495 NetworkConfiguratorStates nextState = _state;
496- _agentsManager->poll ();
496+ _agentsManager->update ();
497497 bool connecting = false ;
498498 switch (_receivedEvent) {
499499 case NetworkConfiguratorEvents::SCAN_REQ: scanNetworkOptions (); break ;
@@ -517,7 +517,7 @@ NetworkConfiguratorStates NetworkConfiguratorClass::handleWaitingForConf() {
517517}
518518
519519NetworkConfiguratorStates NetworkConfiguratorClass::handleConnecting () {
520- _agentsManager->poll (); // To keep alive the connection with the configurator
520+ _agentsManager->update (); // To keep alive the connection with the configurator
521521 StatusMessage err;
522522 ConnectionResult res = connectToNetwork (&err);
523523
@@ -539,7 +539,7 @@ NetworkConfiguratorStates NetworkConfiguratorClass::handleConfigured() {
539539 _ledFeedback->setMode (LEDFeedbackClass::LEDFeedbackMode::PEER_CONNECTED);
540540 }
541541
542- _agentsManager->poll ();
542+ _agentsManager->update ();
543543 // If the agent manager changes state, it means that user is trying to configure the network, so the network configurator should change state
544544 if (_agentsManager->isConfigInProgress () && !configInprogress) {
545545 scanNetworkOptions ();
@@ -560,7 +560,7 @@ NetworkConfiguratorStates NetworkConfiguratorClass::handleUpdatingConfig() {
560560}
561561
562562NetworkConfiguratorStates NetworkConfiguratorClass::handleErrorState () {
563- _agentsManager->poll ();
563+ _agentsManager->update ();
564564 return NetworkConfiguratorStates::ERROR;
565565}
566566
0 commit comments