It sets the essid fine but doesn't require a password to connect.ap.config(essid="ESP32", password="OOTB")
Is there a way to password protect the ESP32 in station mode so that only people with the password can connect to the ESP32
It sets the essid fine but doesn't require a password to connect.ap.config(essid="ESP32", password="OOTB")
Code: Select all
https://forum.micropython.org/viewtopic.php?t=3669
You also need to set the `security` option in ap.config to tell it which security mode to use.OutoftheBOTS_ wrote: ↑Thu Jul 14, 2022 12:13 amIt sets the essid fine but doesn't require a password to connect.
Code: Select all
ap.config(essid="ESP32", password="OOTB", security=network.AUTH_WPA2_PSK)
That threw an errorjimmo wrote: ↑Thu Jul 14, 2022 12:48 amCode: Select all
ap.config(essid="ESP32", password="OOTB", security=network.AUTH_WPA2_PSK)
Code: Select all
Traceback (most recent call last):
File "boot.py", line 4, in <module>
ValueError: unknown config param
MicroPython v1.19.1 on 2022-06-18; ESP32 module with ESP32
Type "help()" for more information.
Code: Select all
authmode=network.AUTH_WPA2_PSK
Sorry, I said the wrong thing. I should have said that it's been renamed _after_ 1.19.1 (the commit was merged later in the same day).