RuntimeError: Wifi Unknown Error 0x0005

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
borch
Posts: 1
Joined: Tue Feb 12, 2019 2:41 am

RuntimeError: Wifi Unknown Error 0x0005

Post by borch » Tue Feb 12, 2019 2:58 am

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

NilsBe
Posts: 3
Joined: Sun Jan 06, 2019 10:47 pm

Re: RuntimeError: Wifi Unknown Error 0x0005

Post by NilsBe » Thu May 16, 2019 6:15 am

I have the same Problem.

AJB2K3
Posts: 44
Joined: Wed Mar 06, 2019 5:20 pm
Location: @nd Star on the Right.
Contact:

Re: RuntimeError: Wifi Unknown Error 0x0005

Post by AJB2K3 » Thu May 16, 2019 4:57 pm

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.

pinazawa
Posts: 8
Joined: Thu Apr 25, 2019 1:13 pm

Re: RuntimeError: Wifi Unknown Error 0x0005

Post by pinazawa » Tue Jun 11, 2019 7:34 pm

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!

Post Reply