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
RuntimeError: Wifi Unknown Error 0x0005
Re: RuntimeError: Wifi Unknown Error 0x0005
I have the same Problem.
Re: RuntimeError: Wifi Unknown Error 0x0005
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.
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
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!
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!