mirror of
https://github.com/agessaman/meshcore-bot.git
synced 2026-07-28 06:22:37 +00:00
Adds device-level companion settings to /radio, headlined by the response path hash size (mode 0-2 = 1-3 bytes per hop) wired to the existing firmware config endpoints. New sections: Identity & Adverts (name, advert lat/lon, location policy, zero-hop/flood advert buttons), Mesh Behavior (extra ACKs, telemetry permissions), and write-only Advanced Tuning (RX delay base, airtime factor, sent x1000 per the wire format). Backend: GET /api/radio/params now returns the full SELF_INFO node fields; POST accepts the new fields with validation; new POST /api/radio/advert; scheduler ops handle the writes (other-params group as one read-modify-write frame so partial updates never clobber device state). Config-managed settings are not writable from the panel: new-contact mode is owned by [Bot] auto_manage_contacts and shown read-only; the node name is locked while bot_name + auto_update_device_name manage it. loop.detect is removed from the firmware endpoints entirely - it is repeater/room-server CLI config, and companion custom vars map to sensor settings. Also: dark-mode styling for disabled form fields (base.html), TASK-01 guard test updated for the deliberate reintroduction, 23 endpoint/template tests.