Skip to content

Commit e42cc79

Browse files
committed
force sending the network configuration when it's updated via Serial
1 parent d161971 commit e42cc79

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ArduinoIoTCloudTCP.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,9 @@ void ArduinoIoTCloudTCP::update()
240240
*/
241241
#if NETWORK_CONFIGURATOR_ENABLED
242242
if(_configurator != nullptr && _state > State::Init && _configurator->update() == NetworkConfiguratorStates::UPDATING_CONFIG){
243+
Message message = { ResetCmdId };
244+
_thing.handleMessage(&message);
245+
_device.handleMessage(&message);
243246
_state = State::ConfigPhy;
244247
}
245248
#endif

0 commit comments

Comments
 (0)