From 86ad3211b4fc15fd826df88b27d7766d22d898f6 Mon Sep 17 00:00:00 2001 From: Simon Schmidt Date: Thu, 10 Jun 2021 18:56:45 +0200 Subject: [PATCH] changed readme --- README.md | 22 ++++++++++++++++++++-- src/main.cpp | 2 +- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 84cc79c..733a89a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,20 @@ -# wifi credentials -need to create wifi_credentials.h from template.h \ No newline at end of file +### Steps to run it + +#### create wifi_credentials.h + +__TEMPLATE__ +```cpp +#ifndef __WIFI_CREDENTIALS_H +#define __WIFI_CREDENTIALS_H + +#ifndef STASSID +#define STASSID "ssid" +#define STAPSK "key" +#endif + +#endif // __WIFI_CREDENTIALS_H +``` + +#### platformio.ini +change IP of esp8266 accordingly +IP gets printed on Serial Monitor after first Upload diff --git a/src/main.cpp b/src/main.cpp index 15c0443..d036268 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -164,8 +164,8 @@ void setup() { void loop() { + Serial.println(""); ArduinoOTA.handle(); - server.handleClient(); } \ No newline at end of file