8000 esp32: On Boot wifi AP defaults now to DEFAULT wifi ssid and Password · pycom/pycom-micropython-sigfox@bda5261 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit bda5261

Browse files
author
iwahdan88
committed
esp32: On Boot wifi AP defaults now to DEFAULT wifi ssid and Password
1 parent ff3b397 commit bda5261

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

esp32/mptask.c

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -635,19 +635,15 @@ STATIC void mptask_update_lpwan_mac_address (void) {
635635
#endif
636636

637637
STATIC void mptask_enable_wifi_ap (void) {
638-
uint8_t wifi_ssid[32];
639-
config_get_wifi_ssid(wifi_ssid);
640-
uint8_t wifi_pwd[64];
641-
config_get_wifi_pwd(wifi_pwd);
642638

643639
wlan_internal_setup_t setup = {
644640
WIFI_MODE_AP,
645-
(wifi_ssid[0]==0x00) ? DEFAULT_AP_SSID : (const char*) wifi_ssid,
646-
(wifi_pwd[0]==0x00) ? DEFAULT_AP_PASSWORD : (const char*) wifi_pwd,
641+
DEFAULT_AP_SSID,
642+
DEFAULT_AP_PASSWORD,
647643
(uint32_t)WIFI_AUTH_WPA2_PSK,
648644
DEFAULT_AP_CHANNEL,
649645
ANTENNA_TYPE_INTERNAL,
650-
(wifi_ssid[0]==0x00) ? true:false,
646+
true,
651647
false,
652648
WIFI_BW_HT40,
653649
NULL,

0 commit comments

Comments
 (0)
0