Page 1 of 1

RuntimeError: Wifi Unknown Error 0x0005

Posted: Tue Feb 12, 2019 2:58 am
by borch
Hi, I am running some example code on my esp32 devkit. I am using this image of micropython: esp32-20190207-v1.10-54-g43a894fb4.bin.

import network
ap = network.WLAN(network.AP_IF) # create access-point interface
ap.config(essid='ESP-AP') # set the ESSID of the access point <=== Here it breaks:
ap.active(True) # activate the interface

>>> ap.config(essid='ESP-AP')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
RuntimeError: Wifi Unknown Error 0x0005
>>>

I've tried searching in the forum but I did not find references for the previous error 0x0005. Do you know what it means?

Thanks.

Borch

Re: RuntimeError: Wifi Unknown Error 0x0005

Posted: Thu May 16, 2019 6:15 am
by NilsBe
I have the same Problem.

Re: RuntimeError: Wifi Unknown Error 0x0005

Posted: Thu May 16, 2019 4:57 pm
by AJB2K3
I'm not sure as I don't have enough knowledge so I'm guessing here but

Does ap.active need to be before ap.config?

I'm noticed errors popping up when code isn't in the correct order.

Re: RuntimeError: Wifi Unknown Error 0x0005

Posted: Tue Jun 11, 2019 7:34 pm
by pinazawa
Hey,

I got this error too. Solved it by first activating the interface, then doing everything else.

import network
sta_if = network.WLAN(network.STA_IF)
sta_if.active(True)
sta_if.connect('<your ESSID>', '<your password>')
...

Hope it helps!