From aff5a6d5b27b4b77e343c7776561ecc3eb299a4c Mon Sep 17 00:00:00 2001 From: sqozz Date: Tue, 20 Feb 2018 18:31:44 +0100 Subject: [PATCH] Use secrets.h --- .gitignore | 5 +++++ switcheroo.ino | 6 ++---- 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1effebc --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +*__pycache__* +secrets.h +.*.swp +.*.swo +build.py diff --git a/switcheroo.ino b/switcheroo.ino index 8de6382..3b6071f 100644 --- a/switcheroo.ino +++ b/switcheroo.ino @@ -1,7 +1,5 @@ #include - -const char* ssid = "sendepunkt"; -const char* password = ""; +#include "secrets.h" void setup() { pinMode(12, OUTPUT); // relay @@ -15,7 +13,7 @@ void setup() { WiFi.mode(WIFI_STA); WiFi.begin(ssid, password); - + while (WiFi.status() != WL_CONNECTED) { digitalWrite(13, !digitalRead(13)); delay(500);