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

Add ability to connect to hidden ssid when using WifiMulti #7189

Closed
1 task done
ShortPutt opened this issue Aug 27, 2022 · 1 comment · Fixed by #9202
Closed
1 task done

Add ability to connect to hidden ssid when using WifiMulti #7189

ShortPutt opened this issue Aug 27, 2022 · 1 comment · Fixed by #9202
Labels
Type: Feature request Feature request for Arduino ESP32
Milestone

Comments

@ShortPutt
Copy link

Related area

WiFiMulti

Hardware specification

ESP32

Is your feature request related to a problem?

I have my IoT devices connect to a hidden ssid. The ssid is hidden not because of security concerns, just simply don't want it listed in list of available networks. The hidden ssid is broadcast on three different APs (w different channels of course). Unlike WiFi, WiFiMulti does a good job of connecting to the AP w/ the strongest signal. I hacked WiFiMulti.cpp to get it to work. It was simple - modified the scanNetworks call to include hidden ssids - WiFi.scanNetworks(false, true) - and then used the hidden ssid for the networks returned by the scan w/o an ssid. Its an unelegant hack, so I'm not going to submit my code, but I think I submitted enough info for someone to make it a feature. I have a number of ESP32's in my IoT. I program them w/ Arduino using the arduino-esp32 lib.

Describe the solution you'd like

WifiMulti feature to connect to hidden ssid w/ strongest RSSI

Describe alternatives you've considered

I looked at various other wifi libs for ESP32. None offer this feature.

Additional context

No response

I have checked existing list of Feature requests and the Contribution Guide

  • I confirm I have checked existing list of Feature requests and Contribution Guide.
@ShortPutt ShortPutt added the Type: Feature request Feature request for Arduino ESP32 label Aug 27, 2022
@SuGlider
Copy link
Collaborator

SuGlider commented Aug 27, 2022

Thanks for the information.

int16_t WiFiScanClass::scanNetworks(bool async, bool show_hidden, bool passive, uint32_t max_ms_per_chan, uint8_t channel, const char * ssid, const uint8_t * bssid) has default show_hidden as false.

It is used in uint8_t WiFiMulti::run(uint32_t connectTimeout)

This can be obtained by using IDF call show_hidden flag in esp_err_t esp_wifi_scan_start(const wifi_scan_config_t *config, bool block)

@ShortPutt - feel free to add a PR with your, or some other, implementation that you may think that could help this Arduino community. It would be great to list your name as one of our great contributors for the next Arduino Core release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature request Feature request for Arduino ESP32
Projects
Development

Successfully merging a pull request may close this issue.

3 participants