#pragma once #include // The Dingtian-shaped config served by /api/v2/config.cgi, persisted to LittleFS. // Holds exactly the keys the booth driver reads/writes (relay_connect, input_link_relay, // input_link_url) — a faithful-enough subset, not a byte copy of the real device. class ConfigStore { public: JsonDocument cfg; String webUser, webPass; // web-UI login (userset.cgi), kept out of config.cgi void begin(); bool save(); bool saveWeb(); void makeDefaults(); uint16_t relayPw() const; bool stringProtoEnabled() const; // udp2.p != 255 bool linkRelayEnabled() const; // input_link_relay flag (factory: on) };