[GH-ISSUE #156] Is it possible to access WiFi.softAPIP() in our sketch? #123

Closed
opened 2026-02-28 01:23:33 +03:00 by kerem · 7 comments
Owner

Originally created by @pieman64 on GitHub (Apr 22, 2016).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/156

@tzapu I see WiFi.softAPIP() is passed with DEBUG_WM to the sketch but are we able to use the IP address as a variable / string in our sketch?

As you are aware there are occassions when ESP's don't give 192.168.4.1 as the IP address and we want to know when this occurs and without using Serial Monitor.

Originally created by @pieman64 on GitHub (Apr 22, 2016). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/156 @tzapu I see WiFi.softAPIP() is passed with DEBUG_WM to the sketch but are we able to use the IP address as a variable / string in our sketch? As you are aware there are occassions when ESP's don't give 192.168.4.1 as the IP address and we want to know when this occurs and without using Serial Monitor.
kerem closed this issue 2026-02-28 01:23:33 +03:00
Author
Owner

@kentaylor commented on GitHub (Apr 24, 2016):

DEBUG_WM is used to print to the serial port rather than pass data.

WiFi.softAPIP() can be called directly from your sketch and the value returned can be used in your sketch but your sketch is blocked when the config portal is running.

<!-- gh-comment-id:213858390 --> @kentaylor commented on GitHub (Apr 24, 2016): DEBUG_WM is used to print to the serial port rather than pass data. WiFi.softAPIP() can be called directly from your sketch and the value returned can be used in your sketch but your sketch is blocked when the config portal is running.
Author
Owner

@pieman64 commented on GitHub (Apr 25, 2016):

As I thought @kentaylor so simple answer is we don't have access the actual IP allocated when working out in the field i.e. no Serial Monitor. Most of the time it allocates 192.168.4.1 as expected but not always. Not sure if it will show up on the routers GUI but we don't always have access to the router. Guess we can randomly ping possible IP's or perhaps tracert.

<!-- gh-comment-id:214258020 --> @pieman64 commented on GitHub (Apr 25, 2016): As I thought @kentaylor so simple answer is we don't have access the actual IP allocated when working out in the field i.e. no Serial Monitor. Most of the time it allocates 192.168.4.1 as expected but not always. Not sure if it will show up on the routers GUI but we don't always have access to the router. Guess we can randomly ping possible IP's or perhaps tracert.
Author
Owner

@tzapu commented on GitHub (Apr 25, 2016):

hi guys,

you can use this https://github.com/tzapu/WiFiManager#enter-config-mode to get the ip, print it on a lcd, or what not.

sorry for being unresponsive, it may be a while yet, but i hope to return to active duty on this asap
thank you

<!-- gh-comment-id:214262851 --> @tzapu commented on GitHub (Apr 25, 2016): hi guys, you can use this https://github.com/tzapu/WiFiManager#enter-config-mode to get the ip, print it on a lcd, or what not. sorry for being unresponsive, it may be a while yet, but i hope to return to active duty on this asap thank you
Author
Owner

@pieman64 commented on GitHub (Apr 25, 2016):

@tzapu that url is coming up with a 404 error.

<!-- gh-comment-id:214263281 --> @pieman64 commented on GitHub (Apr 25, 2016): @tzapu that url is coming up with a 404 error.
Author
Owner

@tzapu commented on GitHub (Apr 25, 2016):

hi, i corrected
https://github.com/tzapu/WiFiManager#enter-config-mode
cheers

<!-- gh-comment-id:214283071 --> @tzapu commented on GitHub (Apr 25, 2016): hi, i corrected https://github.com/tzapu/WiFiManager#enter-config-mode cheers
Author
Owner

@pieman64 commented on GitHub (Apr 25, 2016):

Looks just the job, I should have looked closer at your guide. You are a start @tzapu.

<!-- gh-comment-id:214446871 --> @pieman64 commented on GitHub (Apr 25, 2016): Looks just the job, I should have looked closer at your guide. You are a start @tzapu.
Author
Owner

@tzapu commented on GitHub (May 8, 2016):

thank you guys, doing some spring cleaning up so i will close this.
if any other issue, reopen please
thanks

<!-- gh-comment-id:217701177 --> @tzapu commented on GitHub (May 8, 2016): thank you guys, doing some spring cleaning up so i will close this. if any other issue, reopen please thanks
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#123
No description provided.