From e531d7c1ba0b047740a3bb749376fa0c2c3a4fdf Mon Sep 17 00:00:00 2001 From: 0x1d Date: Tue, 14 Oct 2025 18:12:16 +0200 Subject: [PATCH] feat: update page --- public/index.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/public/index.html b/public/index.html index ce08dd3..beb21e1 100644 --- a/public/index.html +++ b/public/index.html @@ -50,7 +50,7 @@

Auto Discovery

-

UDP-based node discovery with automatic cluster membership on port 4210

+

UDP-based node discovery with automatic cluster membership

Health Monitoring

@@ -86,17 +86,17 @@ class HelloService : public Service { public: HelloService() {} - const char* getName() const override { return "hello"; } + const char* getName() const override { return "HelloService"; } void registerEndpoints(ApiServer& api) override { - api.addEndpoint("/api/hello", HTTP_GET, [](AsyncWebServerRequest* req) { + api.registerEndpoint("/api/hello", HTTP_GET, [](AsyncWebServerRequest* req) { req->send(200, "application/json", "{\"message\":\"hello\"}"); }); } void registerTasks(TaskManager& taskManager) override { taskManager.registerTask("heartbeat", 1000, [this]() { this->heartbeat(); }); - } + } private: void heartbeat() { @@ -111,7 +111,7 @@ Spore spore({ void setup() { spore.setup(); - spore.addService(new HelloService()); + spore.registerService(new HelloService()); spore.begin(); } @@ -124,8 +124,8 @@ void loop() {

Technical Specifications

  • Supported Hardware: ESP-01/ESP-01S (1MB Flash), Wemos D1 (4MB Flash)
  • -
  • Discovery Protocol: UDP broadcast on port 4210
  • -
  • API Interface: RESTful HTTP + WebSocket streaming
  • +
  • Discovery Protocol: Discovery and heartbeat via UDP broadcast
  • +
  • API Interface: RESTful HTTP + WebSocket and UDP streaming
  • Dependencies: ESPAsyncWebServer, ArduinoJson
  • Framework: Arduino with PlatformIO build system
@@ -178,7 +178,7 @@ void loop() {
  • Frontend: Vanilla JavaScript, CSS3, HTML5
  • Architecture: Custom component-based framework
  • -
    +
    register