|
|
@ -15,7 +15,7 @@ |
|
|
|
ESP8266WebServer server(80); |
|
|
|
|
|
|
|
#ifndef STASSID |
|
|
|
#define STASSID "\xF0\x9F\x9B\xB4 UNFLASHED" |
|
|
|
#define STASSID "fossils of late capitalism" |
|
|
|
//#define STASPSK "mypassword"
|
|
|
|
#endif |
|
|
|
|
|
|
@ -32,13 +32,13 @@ |
|
|
|
WiFi.softAP(ssid); |
|
|
|
dnsServer.start(DNS_PORT, "*", apIP); // redirect dns request to AP ip
|
|
|
|
|
|
|
|
MDNS.begin("esp8266", WiFi.softAPIP()); |
|
|
|
MDNS.begin("opencoil", WiFi.softAPIP()); |
|
|
|
Serial.println("Ready"); |
|
|
|
Serial.print("IP address: "); |
|
|
|
Serial.println(WiFi.softAPIP()); |
|
|
|
|
|
|
|
//Over-the-Air updates
|
|
|
|
ArduinoOTA.setHostname("ESP8266"); |
|
|
|
ArduinoOTA.setHostname("opencoil"); |
|
|
|
//ArduinoOTA.setPassword("change-me"); //disabled to allow data uploads
|
|
|
|
ArduinoOTA.begin(); |
|
|
|
SPIFFS.begin(); |
|
|
|