Skip to content

Commit b80169d

Browse files
committed
rename networkconfigurator poll into update
1 parent 79c7630 commit b80169d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

examples/NetworkConfiguratorDemo/NetworkConfiguratorDemo.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ void loop() {
7676
* and notification of connect/disconnect event if enabled.
7777
*
7878
* NOTE: any use of delay() within the loop or methods called from it will delay
79-
* the execution of .poll() and .check() methods of the NetworkConfigurator and
79+
* the execution of .update() and .check() methods of the NetworkConfigurator and
8080
* ConnectionHandler objects which might not guarantee the correct functioning
8181
* of the code.
8282
*/
83-
if(NetworkConfigurator.poll() == NetworkConfiguratorStates::CONFIGURED) {
83+
if(NetworkConfigurator.update() == NetworkConfiguratorStates::CONFIGURED) {
8484
conMan.check();
8585
}
8686
}

src/NetworkConfigurator.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ bool NetworkConfiguratorClass::begin() {
8383
return true;
8484
}
8585

86-
NetworkConfiguratorStates NetworkConfiguratorClass::poll() {
86+
NetworkConfiguratorStates NetworkConfiguratorClass::update() {
8787
NetworkConfiguratorStates nextState = _state;
8888
LEDFeedbackClass::getInstance().poll();//TODO rename in update
8989

src/NetworkConfigurator.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class NetworkConfiguratorClass {
6565
* @brief Polls the current state of the network configurator.
6666
* @return The current state as a NetworkConfiguratorStates enum.
6767
*/
68-
NetworkConfiguratorStates poll();//TODO rename "update"
68+
NetworkConfiguratorStates update();
6969

7070
/**
7171
* @brief Resets the stored network configuration.

0 commit comments

Comments
 (0)