changed readme
This commit is contained in:
parent
86c4a1bb48
commit
86ad3211b4
22
README.md
22
README.md
@ -1,2 +1,20 @@
|
|||||||
# wifi credentials
|
### Steps to run it
|
||||||
need to create wifi_credentials.h from template.h
|
|
||||||
|
#### 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
|
||||||
|
@ -164,8 +164,8 @@ void setup() {
|
|||||||
|
|
||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
|
Serial.println("");
|
||||||
ArduinoOTA.handle();
|
ArduinoOTA.handle();
|
||||||
|
|
||||||
|
|
||||||
server.handleClient();
|
server.handleClient();
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user