Skip to content

Micropython crashes when connecting to an unreachable Network #234

@EYEnet-GROUP

Description

@EYEnet-GROUP

Description

When trying to connect to a wifi-network which is not reachable the board crashes with the error message assertion "*q < pool->len" failed: file "../../py/qstr.c", line 198, function: find_qstr and becomes unresponsive. To regain access the board needs to be reset and sometimes unplugged and repowered. For debugging a message with the reason and status would be helpful. Sometimes the error occurs during the first run of the script even if a connection should be possible but does not return after resetting the board. Since the error occurs in the wlan.connect('<ssid>','<key>') call a potential try-catch would not automatically reconnect or retry to connect. As a countermeasure to include in your documentation the connect call should be placed in a for or while loop.

Code Size

No response

Implementation

I hope the MicroPython maintainers or community will implement this feature

Code of Conduct

Yes, I agree

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions