#include <ESP8266WiFi.h> #include <WiFiClient.h> #include <ESP8266WebServer.h> #include <FS.h> // モード切り替えピン const int MODE_PIN = 0; // GPIO0 // Wi-Fi設定保存ファイル const char* settings = "/wifi_settings.txt"; // サーバモードでのパスワード const String pass = "thereisnospoon"; ESP8266WebServer server(80); /** * WiFi設定 */ void handleRootGet() { String html = ""; html += "<h1>WiFi Settings</h1>"; html += "<form method=
