Browse Source

Added a WiFi password for security reasons. This should solve #123

Marcel Jira 8 years ago
parent
commit
f32c2abfcc
2 changed files with 4 additions and 1 deletions
  1. 2 0
      README.md
  2. 2 1
      src/main.cpp

+ 2 - 0
README.md

@@ -65,6 +65,8 @@ This project uses [WiFiManager](https://github.com/tzapu/WiFiManager) to avoid t
 
 When the ESP powers on, you should be able to see a network named "ESPXXXXX", with XXXXX being an identifier for your ESP. Connect to this AP and a window should pop up prompting you to enter WiFi credentials.
 
+The network password is "**milightHub**".
+
 #### Get IP Address
 
 Both mDNS and SSDP are supported.

+ 2 - 1
src/main.cpp

@@ -150,7 +150,8 @@ bool shouldRestart() {
 
 void setup() {
   Serial.begin(9600);
-  wifiManager.autoConnect();
+  String ssid = "ESP" + String(ESP.getChipId());
+  wifiManager.autoConnect(ssid.c_str(), "milightHub");
   SPIFFS.begin();
   Settings::load(settings);
   applySettings();