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

BSSID Support - Forcing an esp32 to connect to a particular router/AP to prevent switching/'dropouts' on mesh networks #115

Open
ahaverty opened this issue Oct 20, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@ahaverty
Copy link

Hi, I'm wondering if this library could allow defining a BSSID, to lock the esp32 onto a particular access point.

For context, I have an esp32 controlling two switchbots upstairs, connected to home assistant.
My home is running a mesh network (Nest routers + Google Wifi x3).

A few times a day, the esp32 registers as unavailable for a few seconds.
I believe this is due to the esp32 sitting in between two nodes in the mesh network.

Looking through esp32 docs, this appears to be possible:
https://espressif-docs.readthedocs-hosted.com/projects/arduino-esp32/en/latest/api/wifi.html#begin

uint8_t* bssid sets the AP BSSID.

Unfortunately I wouldn't have the knowledge to make a PR here.

I have a full writeup over here, and @devWaves has kindly offered to support BSSID's in his switchbot repo, if this library becomes capable.
devWaves/SwitchBot-MQTT-BLE-ESP32#107 (comment)

Thanks!

@ahaverty ahaverty added the enhancement New feature or request label Oct 20, 2022
@GearlooseTechnology
Copy link

GearlooseTechnology commented May 12, 2023

I have the same issue. I have a complete Ubiquiti setup where I meshing is disabled and the client is locked to an access point using the Ubiquiti network controller. Still I see short to intermediate disconnects. The client is running on an ESP32-S2 Feather board.
I was wondering, did you try this suggestion devWaves and if so, did it help for you?

client.enableLastWillMessage(lastWill, "expire");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants