mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 09:05:56 +03:00
[GH-ISSUE #156] Is it possible to access WiFi.softAPIP() in our sketch? #123
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#123
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@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.
@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.
@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
@pieman64 commented on GitHub (Apr 25, 2016):
@tzapu that url is coming up with a 404 error.
@tzapu commented on GitHub (Apr 25, 2016):
hi, i corrected
https://github.com/tzapu/WiFiManager#enter-config-mode
cheers
@pieman64 commented on GitHub (Apr 25, 2016):
Looks just the job, I should have looked closer at your guide. You are a start @tzapu.
@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