File tree 3 files changed +4
-4
lines changed
examples/NetworkConfiguratorDemo
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -76,11 +76,11 @@ void loop() {
76
76
* and notification of connect/disconnect event if enabled.
77
77
*
78
78
* 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
80
80
* ConnectionHandler objects which might not guarantee the correct functioning
81
81
* of the code.
82
82
*/
83
- if (NetworkConfigurator.poll () == NetworkConfiguratorStates::CONFIGURED) {
83
+ if (NetworkConfigurator.update () == NetworkConfiguratorStates::CONFIGURED) {
84
84
conMan.check ();
85
85
}
86
86
}
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ bool NetworkConfiguratorClass::begin() {
83
83
return true ;
84
84
}
85
85
86
- NetworkConfiguratorStates NetworkConfiguratorClass::poll () {
86
+ NetworkConfiguratorStates NetworkConfiguratorClass::update () {
87
87
NetworkConfiguratorStates nextState = _state;
88
88
LEDFeedbackClass::getInstance ().poll ();// TODO rename in update
89
89
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ class NetworkConfiguratorClass {
65
65
* @brief Polls the current state of the network configurator.
66
66
* @return The current state as a NetworkConfiguratorStates enum.
67
67
*/
68
- NetworkConfiguratorStates poll ();// TODO rename "update"
68
+ NetworkConfiguratorStates update ();
69
69
70
70
/* *
71
71
* @brief Resets the stored network configuration.
You can’t perform that action at this time.
0 commit comments