Skip to content
This repository has been archived by the owner on Jan 11, 2020. It is now read-only.

Get the properties of the setup WiFi AP #44

Merged
merged 2 commits into from
Apr 16, 2018

Conversation

jdede
Copy link
Contributor

@jdede jdede commented Mar 10, 2018

This PR introduces three new functions for easier handling of the setup WiFi network:

  • bool isSetupModeWifiEncrypted(): Returns true if the WiFi is encrypted
  • String getSetupModeWifiName(): Returns the SSID of the setup WiFi (ESP32_)
  • String getSetupModeWifiSecret(): Returns the secret of the setupt WiFi

This PR is required to fix jamct/DoorsignEPD#19

Basecamp.cpp Outdated
* Returns the SSID of the setup WiFi network
*/
String Basecamp::getSetupModeWifiName(){
return "ESP32_" + wifi.getHardwareMacAddress();
Copy link
Contributor

@Dirk007 Dirk007 Mar 13, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To have a single source of truth, I would suggest to implement a wifi.getApName()-Getter in the wifiControl and return the info from there right here using return wifi.getApName().

@jdede
Copy link
Contributor Author

jdede commented Mar 13, 2018

Good idea @Dirk007 ! Fixed in 8422ad5

@merlinschumacher merlinschumacher merged commit ba4a768 into ct-Open-Source:master Apr 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Not showing correct SSID of AP
3 participants