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

anerbenartzi
Posts: 1
Joined: Sun Jun 16, 2019 8:49 am

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

Postby anerbenartzi » Sun Jun 16, 2019 9:06 am

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.
Attachments
log1.txt
shows monitor messages from attempted connection by phone
(5.84 KiB) Downloaded 442 times
blink.c
code file that sets up a trivial AP.
(1.69 KiB) Downloaded 438 times

Who is online

Users browsing this forum: Abisha and 306 guests