Page 1 of 1

WIFI_MODE_AP ( softAP ) does not provide an ip address, phone continually says "obtaining ip address"

Posted: Sun Jun 16, 2019 9:06 am
by anerbenartzi
TL;DR: My Android phone cannot obtain an ip address from ESP32 in WIFI_MODE_AP.

I followed the code presented in:
https://techtutorialsx.com/2017/07/29/e ... a-soft-ap/
(note, the tutorial should be updated to include a call to nvs_flash_init())

It is the a "hello world" program for putting the ESP32 into AccessPoint Mode.

I can see the SSID on my Android (version P) Pixel3 XL, but when I try to connect it is never able to complete the "handshake" and obtain an ip address. After several attempts, it stops trying with the message "IP Configuration Failure".

I am doing this with esp-idf release/v3.3
(I also tried v3.2 and v3.0)

I noticed that similar problems were reported a while back:
https://github.com/espressif/esp-idf/issues/2273

Mainly, my question is: Should I keep pushing, or is the AP functionality currently in a fragile state where some (all?) phones cannot connect to it?

I am doing this with Linux Mint 19 and an ESP-WROOM-32
I have attached the .c file (a modified blink.c), and the log from "make monitor"

Thank you.