WiFi Scanner
📶 error408 (--)
📶 error408 Strong
📶 error408 Medium
📶 error408 Weak
Device Tools
Fan Control Status
Fan: OFF
Arduino Code — ESP8266 WiFi Scan
// Minimal Arduino WiFi Scan (ESP8266)
#include
void setup() {
Serial.begin(115200);
WiFi.mode(WIFI_STA);
WiFi.disconnect();
delay(100);
Serial.println("Scanning...");
int n = WiFi.scanNetworks();
for (int i = 0; i < n; ++i) Serial.println(WiFi.SSID(i));
}
void loop() { }
Arduino Code — LED API Server
// Simple LED API server
#include
ESP8266WebServer server(80);
bool ledState = false;
void handleGet() {
String json = String("{\"led\":") + (ledState ? "true}" : "false}");
server.send(200, "application/json", json);
}
void handleToggle() {
ledState = !ledState;
digitalWrite(LED_BUILTIN, ledState ? LOW : HIGH);
handleGet();
}
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
digitalWrite(LED_BUILTIN, HIGH);
WiFi.begin("YOUR_SSID", "YOUR_PASS");
while (WiFi.status() != WL_CONNECTED) delay(200);
server.on("/led", handleGet);
server.on("/led/toggle", handleToggle);
server.begin();
}
void loop() { server.handleClient(); }
Code Editor
Output will appear here...