Skip to content

Commit 73f1a33

Browse files
committed
rename agentsManager poll into update
1 parent 4884c1b commit 73f1a33

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/Arduino_NetworkConfigurator.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ NetworkConfiguratorStates NetworkConfiguratorClass::handleReadStorage() {
493493

494494
NetworkConfiguratorStates 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

519519
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
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

562562
NetworkConfiguratorStates NetworkConfiguratorClass::handleErrorState() {
563-
_agentsManager->poll();
563+
_agentsManager->update();
564564
return NetworkConfiguratorStates::ERROR;
565565
}
566566

src/ConfiguratorAgents/AgentsManager.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ bool AgentsManagerClass::begin() {
5050
return true;
5151
}
5252

53-
AgentsManagerStates AgentsManagerClass::poll() {
53+
AgentsManagerStates AgentsManagerClass::update() {
5454
switch (_state) {
5555
case AgentsManagerStates::INIT: _state = handleInit (); break;
5656
case AgentsManagerStates::SEND_INITIAL_STATUS: _state = handleSendInitialStatus (); break;

src/ConfiguratorAgents/AgentsManager.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class AgentsManagerClass {
3636
bool begin();
3737
bool end();
3838
void disconnect();
39-
AgentsManagerStates poll(); //TODO rename to update
39+
AgentsManagerStates update();
4040
void enableAgent(ConfiguratorAgent::AgentTypes type, bool enable);
4141
bool isAgentEnabled(ConfiguratorAgent::AgentTypes type);
4242
// Force starting agent even if disabled

0 commit comments

Comments
 (0)