Files
wadamesh/web/compat/WiFiServer.h
T
Kaj SchittecatandClaude Opus 5.5 963c75df5d web: host build of the real touch UI (SDL2, demo backend)
The touch UI (src/ui-touch, unmodified apart from WADA_WEB board guards)
builds for macOS with CMake and runs in an SDL2 window: a compat layer
for the Arduino/ESP-IDF/FreeRTOS surface, a MyMesh stand-in with a
MeshBackend interface (DemoBackend now), and the web board's SDL
display/touch/keyboard drivers. WEB_BUILD.md follows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 12:06:04 +02:00

17 lines
543 B
C++

#pragma once
// A TCP server that never accepts (the web board serves nothing in phase 1).
#include "WiFiClient.h"
class WiFiServer {
public:
explicit WiFiServer(uint16_t port = 80, uint8_t max_clients = 4) { (void)port; (void)max_clients; }
void begin(uint16_t port = 0) { (void)port; }
void end() {}
void close() {}
void stop() {}
void setNoDelay(bool) {}
bool hasClient() { return false; }
WiFiClient available() { return WiFiClient(); }
WiFiClient accept() { return WiFiClient(); }
operator bool() { return false; }
};