Category : server

I have a client/server application that basically is some kind of Twitter where you can follow profile and send messages. Profiles that follow you will receive the message (notification). The server receives 2 connections per client, one for sending the notifications and another for receiving commands. It creates one thread for each connection. Each connection ..

Read more

I have an interface on an ESP32 served by ESPAsyncWebServer. These are the relevant handlers: server.on("/", HTTP_GET, [](AsyncWebServerRequest *request) { request->redirect("/dashboard"); }); server.serveStatic("/settings", SPIFFS, "/www/settings.html"); server.serveStatic("/dashboard", SPIFFS, "/www/index.html"); server.serveStatic("/user", SPIFFS, "/ap/user_ap.html").setFilter(ON_AP_FILTER); server.serveStatic("/user", SPIFFS, "/www/user_sta.html").setFilter(ON_STA_FILTER); server.serveStatic("/", SPIFFS, "/"); server.begin(); This is the head of settings.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" ..

Read more