Can't set accesspoint password

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
kacpo1
Posts: 3
Joined: Thu Mar 12, 2020 7:41 pm

Can't set accesspoint password

Post by kacpo1 » Mon Mar 16, 2020 2:35 pm

Hi,

I'm trying to make accesspoint with password. I'm using this code:

Code: Select all

import network

ssid = 'MicroPython-AP'
password = '123456789'

ap = network.WLAN(network.AP_IF)
ap.active(True)
ap.config(essid=ssid, password=password)
But it always doesn't have any password.

Christian Walther
Posts: 169
Joined: Fri Aug 19, 2016 11:55 am

Re: Can't set accesspoint password

Post by Christian Walther » Mon Mar 16, 2020 7:28 pm


User avatar
tve
Posts: 216
Joined: Wed Jan 01, 2020 10:12 pm
Location: Santa Barbara, CA
Contact:

Re: Can't set accesspoint password

Post by tve » Mon Mar 16, 2020 7:31 pm

I did a quick test and have to agree. You probably need to set authmode too?

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: Can't set accesspoint password

Post by jimmo » Mon Mar 16, 2020 10:04 pm

Yep this has come up before, you need to set authmode.

Post Reply