mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1678] Feature request: connect with specific BSSID obtaining from of a networkscann #1423
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#1423
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 @lastphoenx on GitHub (Nov 18, 2023).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1678
Basic Infos
Hardware
WiFimanager Branch/Release: Master 2.016-rc.2
Esp8266/Esp32:
Hardware: ESP32CAM AI Thinker ESP32-Cam
Description
Problem description
it would be very useful to be able to do soemthing like this, after a networkscan:
WiFi.begin(ssid, password, Kanal, WiFi.BSSID(i))
Message:
As I found, that it often reconnects to first BSSID it has ever connectet, it tends to only reconnect to this BSSID.
with WiFi.begin(ssid, password, Kanal, WiFi.BSSID(i)) i can change that behavior easily, but I cant do that with Wifi.Manger as I dont have access to the password for example and as i dont wanna store it in my coding I use Wifi-Manger.
@tablatronix commented on GitHub (Nov 18, 2023):
This is based on the scan options esp does this because its faster but sucks for mesh. You can adjust this and you can also save bssid automatically.
I will find examples
@lastphoenx commented on GitHub (Nov 18, 2023):
@tablatronix
okay, I'd be really grateful for examples because I couldn't figure it out with custom parameters/add parameters.
@tablatronix commented on GitHub (Nov 18, 2023):
check the super example
I might add a UI toggle for this at some point
@lastphoenx commented on GitHub (Nov 18, 2023):
wow, looks brilliant. thx so much.
meanwhile I tried this:
`
#include <EEPROM.h>
#include <WiFi.h>
`
what do you think about that? to complicated?
@tablatronix commented on GitHub (Nov 18, 2023):
Esp will save bssid for you. I did some work on this in #1342 I will revisit the status
@lastphoenx commented on GitHub (Nov 18, 2023):
oh - I see. thx!
@lastphoenx commented on GitHub (Nov 18, 2023):
I tested it (your three Lines of code by putting it in first Place of My void Setup. Workshop Perfect. I Would like to say thank you a) for your Library and b) for your fast reply.
@tablatronix commented on GitHub (Nov 18, 2023):
WiFi.setScanMethod(WIFI_ALL_CHANNEL_SCAN);This is the key, otherwise esp by default uses the FIRST AP not the strongest
They turned it to fast so battery low power devices connect much faster
@lastphoenx commented on GitHub (Nov 18, 2023):
yes, thats true. knowing this, maybe even a
wifiManager.setConnectTimeout(20000);would fix it? (not best practice though)would still be nice to know how to pass a specific BSSID to wifi.mangers autoconect or add optional BSSID paramater so that someone could fill it (like:
res=wm.autoConnect("AutoConnectAP", "password","BSSID")`@tablatronix commented on GitHub (Nov 19, 2023):
yeah I thought I added this somewhere but I cant find it
@lastphoenx commented on GitHub (Nov 19, 2023):
You told that so i searched it on here in different request, discussions but did Not find it.
@lastphoenx commented on GitHub (Nov 19, 2023):
It is not consistent. sometimes now it gets the best rssi but not always. it seems as if I need to make a time out.
would something like this help:
wm.setConnectTimeout(7)where would i place it ?@tablatronix commented on GitHub (Nov 19, 2023):
I dont think so, the begin() should be doing a scan every connect before, unless you have issues like ap not found or something
@lastphoenx commented on GitHub (Nov 19, 2023):
thx, whatever, it would be great to pass a specifi bssid to wifimanger anyway.
@tablatronix commented on GitHub (Nov 19, 2023):
Yeah I will try to test this a bit, I have a mesh network, I also just updated the fastconnect feature branch to test that
Might be later this week
I might have made a branch that I never pushed, or maybe its a PR, I know I had basic set bssid as one, but maybe there was esp bugs and I abandoned it at the time
I even had it set to auto use bssid if you have AP grouping turned off
@lastphoenx commented on GitHub (Nov 19, 2023):
okay, gerat. let me know. I will help to test as i have a great mesh with 5 AP.