mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #778] Accessing information of the connected wifi from the main sketch in the IDE #649
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#649
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 @Bjack795 on GitHub (Nov 30, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/778
PLEASE TRY DEVELOPMENT BRANCH before submitting bugs on release or master, in case they were already fixed.
POST SERIAL OUTPUT !
Issues without basic info will be ignored or closed!
Please fill the info fields, it helps to get you faster support ;)
if you have a stack dump decode it:
https://github.com/esp8266/Arduino/blob/master/doc/Troubleshooting/stack_dump.rst
for better debug messages:
https://github.com/esp8266/Arduino/blob/master/doc/Troubleshooting/debugging.rst
----------------------------- Remove above -----------------------------
Basic Infos
Hardware
WiFimanager Branch/Release:
Esp8266/Esp32:
Hardware: ESP-12e, esp01, esp25
Description
Hi!
I'm using an ESP32 based board.
I need local_IP, gateway, subnet, dns, ssid and password of the connected wifi.
Could you please tell me how to access these information from the Arduino IDE or where to find them in the library files (to add some code to pass them to the Arduino IDE)?
@tablatronix commented on GitHub (Nov 30, 2018):
These are all standard functions for esp, has nothing to do with wm, note that on esp32 you cannot get these settings until wifi is connected.
Look in the esp docs
@Bjack795 commented on GitHub (Nov 30, 2018):
When the library scans and connects to a wifi collects those info to establish the connections isn't it?
@tablatronix commented on GitHub (Nov 30, 2018):
no the wifi just does not get initialized in esp32 like it does in esp8266 so the config is not loaded until after wifi turns on, then you can read the network info
@Bjack795 commented on GitHub (Nov 30, 2018):
Ok so I must refer to the Wifi.h functions to get those info
@tablatronix commented on GitHub (Nov 30, 2018):
They should all be in the docs already
but they are in wifigeneric and wifista wifiap
@tablatronix commented on GitHub (Nov 30, 2018):
you can look the wm source code for the info page if you want
@Bjack795 commented on GitHub (Nov 30, 2018):
Ok I found all the data I needed thank you.
Offtopic: This library is saving last wifi credentials on the EEPROM memory?
@tablatronix commented on GitHub (Dec 1, 2018):
no esp does the saving