rp2/main: Set default AP auth mode to WPA2_AES_PSK.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George 2022-07-05 11:07:16 +10:00
parent d660a0c3d1
commit 4b9a2abbde
1 changed files with 1 additions and 0 deletions

View File

@ -143,6 +143,7 @@ int main(int argc, char **argv) {
buf[6] = hexchr[pid.id[5] >> 4];
buf[7] = hexchr[pid.id[4] & 0xf];
cyw43_wifi_ap_set_ssid(&cyw43_state, 8, buf);
cyw43_wifi_ap_set_auth(&cyw43_state, CYW43_AUTH_WPA2_AES_PSK);
cyw43_wifi_ap_set_password(&cyw43_state, 8, (const uint8_t *)"picoW123");
}
#endif