1 changed files with 0 additions and 25 deletions
@ -1,25 +0,0 @@ |
|||||||
#include <ESP8266WiFi.h> |
|
||||||
#include <ESP8266mDNS.h> |
|
||||||
#include <ArduinoOTA.h> |
|
||||||
|
|
||||||
#ifndef STASSID |
|
||||||
#define STASSID "PBS-6C0855" |
|
||||||
#define STAPSK "GtYpvyXv0uLQT" |
|
||||||
#endif |
|
||||||
|
|
||||||
const char* ssid = STASSID; |
|
||||||
const char* password = STAPSK; |
|
||||||
|
|
||||||
void setup() { |
|
||||||
WiFi.mode(WIFI_STA); |
|
||||||
WiFi.begin(ssid, password); |
|
||||||
while (WiFi.waitForConnectResult() != WL_CONNECTED) { |
|
||||||
delay(5000); |
|
||||||
ESP.restart(); |
|
||||||
} |
|
||||||
ArduinoOTA.begin(); |
|
||||||
} |
|
||||||
|
|
||||||
void loop() { |
|
||||||
ArduinoOTA.handle(); |
|
||||||
} |
|
||||||
Loading…
Reference in new issue