mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 09:05:56 +03:00
[GH-ISSUE #1744] Get stored SSID before connection is made, to connect to strongest of multiple identical SSIDs #1477
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#1477
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 @richardhawthorn on GitHub (Jun 18, 2024).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1744
Hi there
I'm trying to get the SSID of the stored network before the first connection is made (I know I can use WiFi.SSID() once the network is connected, but I don't want to connect first)
Background: I have a network with multiple identical SSIDs (and passwords), and I want to connect to the strongest of those. If I have the SSID I can scan for all networks (matching on SSID), check which is the strongest, and use it's BSSID to connect to that access point specifically, giving me the strongest connection.
Thanks!
Richard
@richardhawthorn commented on GitHub (Jun 21, 2024):
For those looking to do the same thing, here are the function you need to access the SSID and password before the connection is made:
ESP8266
ESP32
With both of these, you can get the saved password by replacing 'ssid' with 'password'.
@tablatronix commented on GitHub (Jun 22, 2024):
esp32 cannot obtain ssid until you init wifi.
also already in wm
Also this is already doable in esp