Use secrets.h
This commit is contained in:
parent
84504b052f
commit
aff5a6d5b2
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
*__pycache__*
|
||||||
|
secrets.h
|
||||||
|
.*.swp
|
||||||
|
.*.swo
|
||||||
|
build.py
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue