How rosugabriel/nodemcuproxy works
This is a small ESP8266-based proxy for managing another server. After joining Wi-Fi, its HTTP server serves a status page and handles wake and shutdown requests: status is checked with ping, wake sends a UDP magic packet, and shutdown posts to the server’s configured HTTP endpoint. The source excerpt shows these handlers and their direct calls; the README documents the intended integrations. Secrets are referenced by the source, but the repository only contains an example secrets header, so configuration details are not expanded.
Main entry points: main.cpp HTTP control server
Components 12
ESP8266 controller
- Controller firmware
src/main.cpp - HTTP control server
src/main.cpp - Status page
src/main.cpp
Server management
- Server reachability
src/main.cpp - Wake handler
src/main.cpp - Magic packet
src/main.cpp - Shutdown handler
src/main.cpp - HTTP shutdown client
src/main.cpp
Other components
- Browser user
- Wi-Fi network
- UDP broadcast
- Managed server
Connections 15
- Controller firmware → Wi-Fi network: connects
src/main.cpp - Controller firmware → HTTP control server: starts
src/main.cpp - Browser user → HTTP control server: requests
src/main.cpp - HTTP control server → Server reachability: routes status
src/main.cpp - HTTP control server → Wake handler: routes wake
src/main.cpp - HTTP control server → Shutdown handler: routes shutdown
src/main.cpp - Server reachability → Managed server: pings
src/main.cpp - Server reachability → Status page: renders
src/main.cpp - Wake handler → Status page: responds with
src/main.cpp - Wake handler → Magic packet: creates
src/main.cpp - Magic packet → UDP broadcast: broadcasts
src/main.cpp - UDP broadcast → Managed server: sends wake packet
- Shutdown handler → Status page: responds with
src/main.cpp - Shutdown handler → HTTP shutdown client: posts through
src/main.cpp - HTTP shutdown client → Managed server: posts shutdown
src/main.cpp