Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sticky MAC Adress Option for AP #3189

Closed
razer4908 opened this issue Jul 11, 2018 · 12 comments
Closed

Sticky MAC Adress Option for AP #3189

razer4908 opened this issue Jul 11, 2018 · 12 comments
Labels
good tip Type - Very useful information

Comments

@razer4908
Copy link

razer4908 commented Jul 11, 2018

Hi,
first of all thank you very much for this awesome firmware.
Do you think it is possible to implement an option, so that the Sonoff always connect to the same Router (via MAC-Address) ? APMac is already visible in the console view so think an Input Mask for the APMac to check the equality of the AP MAC is the Solution.

Background:

I have 2 Wifi AP´s named the same so that for example mobile phones can switch the AP easily when i go downstairs, But sometimes the Sonoffs also switch to the AP with the lower signal strength. So if i can set an MAC-Address to fix the Sonoff to an specific AP would be awesome.

Greetings from Germany
Dominic

@Frogmore42
Copy link
Contributor

Tasmota is using the Wifi code from the esp8266 Arduino project. I don't believe it supports what you want. So, I don't believe you can do it.

I have two APs but they are some distance apart. I gave them unique names, so I could see which one was connected. It also makes it easier to control which one things use for connection.

@ascillato2
Copy link
Collaborator

Just for reference to a similar request. #2711

@ascillato2
Copy link
Collaborator

Hi,

It is not supported by now. As the ESP8266 wifi libraries are still in development and still have some issues, Tasmota is keeping WIFI management as simple as it can be, in order to avoid as many problems as it can.

So, by now it is not going to be implemented. When the esp8266 libraries got more mature we can add more features.

Thanks for your comments.

Added the goodtip label in order to take your request the in future

@ascillato2 ascillato2 added the good tip Type - Very useful information label Aug 25, 2018
@leifclaesson
Copy link

It's been almost two years. I'm looking for the same thing. I'm planning to have a large amount of WiFi lights in my ceiling, and will need them to be off rather in standby when not in use, so fast connection is absolutely crucial. Apparently it's possible to connect to the AP in 450ms with static IP and pre-configured BSSID.

WiFi.begin() does seem to support specifying BSSID and channel as a parameter, and these lights and the access point will not be moving around.

The esp8266 libraries seem to support it, what's missing is support in Tasmota.

@s-hadinger
Copy link
Collaborator

@leifclaesson I did a quick and dirty test and indeed the connection happens real fast. Theo confirmed he will explore.

arendst added a commit that referenced this issue Apr 7, 2020
Add quick wifi connect using saved AP parameters when ``SetOption56 0`` (#3189)
@ajw107
Copy link

ajw107 commented Apr 30, 2020

Could you make it possible to configure the BSSID, therefore forcing it to connect to a specific AP. This would be really useful, and what the OP seemed to want too. At the moment the BSSID seems to be grabbed from memory, rather than a specific setting.

@SteveDinn
Copy link

I would love to have this feature. Currently a few of my tasmota devices always seem to want to connect to a remote node of my mesh wifi network, I can't seem to get them to pick any of the closer ones. BSSID would force it.

@martymarty004
Copy link

This would be the perfect solution for anyone who has multiple APs near each others

@DL6ER
Copy link

DL6ER commented Dec 24, 2020

I'm also using a Mesh WiFi with three access points spread across the entire house. They all have the same SSID. Even when I place my tasomtized Sonoff next to one of the APs, it picks one of them by random, and then reports a signal quality of less than 30-40%.

I've seen Jason2866#17 which stores BSSID for quick reconnect. A similar feature could be added to upstream Tasmota with customizable BSSID, what do you think? @ascillato2

@DL6ER
Copy link

DL6ER commented Dec 25, 2020

My plans are to extend the simple results
Screenshot from 2020-12-25 10-03-38
to a list of individual AP/BSSIDs maybe like
Screenshot from 2020-12-25 10-18-36

@arendst If you think this is something worth adding and is going to be accepted, I'm willing to work on this and see if it is possible.

@arendst
Copy link
Owner

arendst commented Dec 25, 2020

Don't bother. I fought an earlier fix for over a month to get it stable again for all users so no plans to change this process again.

I suppose you did look at using SetOption56 and SteOption57 to manage your issue.

Anyway, I have two unifi AP's with same SSID and my devices just select the most powerful connection. Once done I do SO56 0 fixing my latest BSSID.

@DL6ER
Copy link

DL6ER commented Dec 25, 2020

Thanks for pointing me towards SO 57. For whatever reason, I have only seen SO 56 so far and will try 57 now.

So my contribution will reduce to improving the WiFi scanner result display because this gives some nice extra info: #10253

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good tip Type - Very useful information
Projects
None yet
Development

No branches or pull requests

10 participants