Skip to content

WiFi connection times out after ~2 seconds on Nano RP2040 Connect #175

@sebromero

Description

@sebromero

When connecting to WiFi using config parameters, the connection times out after roughly 2 seconds with the following message:

>OKTraceback (most recent call last):
  File "<stdin>", line 36, in <module>
  File "asyncio/core.py", line 1, in run
  File "asyncio/core.py", line 1, in run_until_complete
  File "asyncio/core.py", line 1, in run_until_complete
  File "<stdin>", line 21, in main
  File "/lib/mqtt_as/__init__.py", line 778, in connect
  File "/lib/mqtt_as/__init__.py", line 766, in wifi_connect
OSError: Wi-Fi connect timed out

I'm on Nano RP2040 and MicroPython 1.26.1 and Nina FW 2.0.0.

When I connect to the WiFi manually before connecting the MQTT client, I get:

Traceback (most recent call last):
  File "<stdin>", line 49, in <module>
  File "asyncio/core.py", line 1, in run
  File "asyncio/core.py", line 1, in run_until_complete
  File "asyncio/core.py", line 1, in run_until_complete
  File "<stdin>", line 21, in main
  File "/lib/mqtt_as/__init__.py", line 800, in connect
  File "/lib/mqtt_as/__init__.py", line 313, in _connect
  File "ssl.py", line 1, in wrap_socket
  File "ssl.py", line 1, in wrap_socket
OSError: [Errno 119] EINPROGRESS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions