define secrets

This commit is contained in:
Laurent Deleers
2020-04-10 12:10:25 +02:00
parent 4a1af55b15
commit 545ba4cc3f
4 changed files with 40 additions and 2 deletions

View File

@@ -14,6 +14,9 @@
#define OLED_RESET 0 // GPIO0
#define SECRET_SSID "lauIOT"
#define SECRET_PASS "superiot1"
Adafruit_SSD1306 OLED(OLED_RESET);
ESP8266WiFiMulti WiFiMulti;
@@ -24,7 +27,7 @@ void setup() {
delay(1000);
Serial.flush();
WiFi.mode(WIFI_STA);
WiFiMulti.addAP("lauIOT", "superiot1");
WiFiMulti.addAP(SECRET_SSID, SECRET_PASS);
OLED.begin();
OLED.clearDisplay();