Skip to content

Conversation

@vvmusiienko
Copy link
Contributor

@vvmusiienko vvmusiienko commented Mar 30, 2022

Fixed (improved) main loop blocking while calling myBot.getNewMessage without internet connection (e.g cable unplugged from the WAN port of a router, but Wi-Fi still presented).

There is till some blocking around 16 secs of duration each 10*m_minUpdateTime because of invoking reset(); but at least not each loop() iteration :)
The 16 sec block is caused by WiFiClientSecure::connect function, which also seems to be known issue
espressif/arduino-esp32#5418

Tested on esp8266 but perhaps should be similar behavior on esp32.

… without internet connection (e.g cable unplugged from the WAN port of a router)
@cotestatnt cotestatnt merged commit 673ee5a into cotestatnt:master Apr 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants