@@ -211,7 +211,6 @@ void ArduinoIoTCloudTCP::update()
211
211
switch (_state)
212
212
{
213
213
case State::ConfigPhy: next_state = handle_ConfigPhy (); break ;
214
- case State::updatePhy: next_state = handle_updatePhy (); break ;
215
214
case State::Init: next_state = handle_Init (); break ;
216
215
case State::ConnectPhy: next_state = handle_ConnectPhy (); break ;
217
216
case State::SyncTime: next_state = handle_SyncTime (); break ;
@@ -236,7 +235,7 @@ void ArduinoIoTCloudTCP::update()
236
235
*/
237
236
#if NETWORK_CONFIGURATOR_ENABLED
238
237
if (_configurator != nullptr && _state > State::Init && _configurator->update () == NetworkConfiguratorStates::UPDATING_CONFIG){
239
- _state = State::updatePhy ;
238
+ _state = State::ConfigPhy ;
240
239
}
241
240
#endif
242
241
@@ -310,21 +309,6 @@ ArduinoIoTCloudTCP::State ArduinoIoTCloudTCP::handle_ConfigPhy()
310
309
311
310
}
312
311
313
- ArduinoIoTCloudTCP::State ArduinoIoTCloudTCP::handle_updatePhy ()
314
- {
315
- #if NETWORK_CONFIGURATOR_ENABLED
316
- if (_configurator != nullptr && _configurator->update () == NetworkConfiguratorStates::CONFIGURED){
317
- _configurator->disconnectAgent ();
318
- // Go to Connected state since the connectionHandler obj doesn't change
319
- return State::Connected;
320
- }
321
-
322
- return State::updatePhy;
323
- #else
324
- return State::Connected;
325
- #endif
326
- }
327
-
328
312
ArduinoIoTCloudTCP::State ArduinoIoTCloudTCP::handle_Init ()
329
313
{
330
314
/* Setup broker TLS client */
0 commit comments