You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following code works in 2.19.1, but not in latest on ESP32:
static void enable_ap(void)
{
struct mgos_config_wifi_ap ap_cfg;
memcpy(&ap_cfg, mgos_sys_config_get_wifi_ap(), sizeof(ap_cfg));
ap_cfg.enable = true;
int result = mgos_wifi_setup_ap(&ap_cfg);
}
static void disable_ap(void)
{
struct mgos_config_wifi_ap ap_cfg;
memcpy(&ap_cfg, mgos_sys_config_get_wifi_ap(), sizeof(ap_cfg));
ap_cfg.enable = false;
int result = mgos_wifi_setup_ap(&ap_cfg);
}
Setting the WiFi AP mode on ESP32 using the above code with latest causes a core dump:
0x40103707 in esp32_wifi_set_mode (mode=WIFI_MODE_NULL)
at /home/mongoose/deps/wifi/src/esp32/esp32_wifi.c:221
221 *((int *) 123) = 456;
#0 0x40103707 in esp32_wifi_set_mode (mode=WIFI_MODE_NULL)
at /home/mongoose/deps/wifi/src/esp32/esp32_wifi.c:221
#1 0x401037c8 in esp32_wifi_remove_mode (mode=<optimized out>)
at /home/mongoose/deps/wifi/src/esp32/esp32_wifi.c:285
#2 0x4010400c in mgos_wifi_dev_ap_setup (
cfg=0x3ffb6330 <mgos_task_stack+7736>)
at /home/mongoose/deps/wifi/src/esp32/esp32_wifi.c:458
#3 0x4010233d in mgos_wifi_setup_ap (cfg=0x3ffb6330 <mgos_task_stack+7736>)
at /home/mongoose/deps/wifi/src/mgos_wifi.c:220
#4 mgos_wifi_setup_ap (cfg=0x3ffb6330 <mgos_task_stack+7736>)
at /home/mongoose/deps/wifi/src/mgos_wifi.c:212
Following code works in 2.19.1, but not in latest on ESP32:
Setting the WiFi AP mode on ESP32 using the above code with latest causes a core dump:
Seems to be a result of this line/commit @rojer
The text was updated successfully, but these errors were encountered: