CircuitPython version
Adafruit CircuitPython 8.0.0 beta 3, QtPy with ESP32-S2
Code/REPL
import wifi
wifi.radio.connect(secrets["ssid"], secrets["password"], timeout=10)
Behavior
In case the DHCP server is not responding to the DHCP requests sent via the connect() call, the call does not return after 10 seconds - the timeout seems to be is ignored (assuming the timeout is specified in seconds). I'd expect that connect() should raise an exception or return with error after the timeout is reached.
My experiment lasted for about 15 minutes, perhaps there is some other timeout that may kick in much later on.
Description
Besides the timeout not having any effect in this case, the documentation on https://docs.circuitpython.org/en/latest/shared-bindings/wifi/index.html#wifi.Radio.connect does not describe the timeout argument. Also, it does not mention that DHCP is used by default and how it actually works.
Additional information
Originally reported on https://forums.adafruit.com/viewtopic.php?p=959677
CircuitPython version
Code/REPL
Behavior
In case the DHCP server is not responding to the DHCP requests sent via the
connect()call, the call does not return after 10 seconds - the timeout seems to be is ignored (assuming the timeout is specified in seconds). I'd expect that connect() should raise an exception or return with error after the timeout is reached.My experiment lasted for about 15 minutes, perhaps there is some other timeout that may kick in much later on.
Description
Besides the timeout not having any effect in this case, the documentation on https://docs.circuitpython.org/en/latest/shared-bindings/wifi/index.html#wifi.Radio.connect does not describe the
timeoutargument. Also, it does not mention that DHCP is used by default and how it actually works.Additional information
Originally reported on https://forums.adafruit.com/viewtopic.php?p=959677