Use secrets.h

This commit is contained in:
sqozz 2018-02-20 18:31:44 +01:00
parent 84504b052f
commit aff5a6d5b2
2 changed files with 7 additions and 4 deletions

5
.gitignore vendored Normal file
View file

@ -0,0 +1,5 @@
*__pycache__*
secrets.h
.*.swp
.*.swo
build.py

View file

@ -1,7 +1,5 @@
#include <ESP8266WiFi.h> #include <ESP8266WiFi.h>
#include "secrets.h"
const char* ssid = "sendepunkt";
const char* password = "";
void setup() { void setup() {
pinMode(12, OUTPUT); // relay pinMode(12, OUTPUT); // relay
@ -15,7 +13,7 @@ void setup() {
WiFi.mode(WIFI_STA); WiFi.mode(WIFI_STA);
WiFi.begin(ssid, password); WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) { while (WiFi.status() != WL_CONNECTED) {
digitalWrite(13, !digitalRead(13)); digitalWrite(13, !digitalRead(13));
delay(500); delay(500);