Skip to content
Discussion options

You must be logged in to vote

"Internal wifi error"

Follow any disconnect with:

    sta_if.disconnect()

Start any connect sequence with:

    sta_if.active(True)

 #  seems more reliable to start with a fresh connect()
    if sta_if.isconnected():
        sta_if.disconnect()
        print (f'started in the connected state, but now disconnected')
    else:
        print (f'started in the disconnected state')

    utime.sleep(0.1)

or better still try using this:
https://github.com/glenn20/micropython-espnow-utils/blob/main/src/wifi.py

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by stain3565
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ESP32
Labels
None yet
2 participants