mirror of
https://github.com/mikecarper/MeshCore.git
synced 2026-10-23 19:12:23 +00:00
feat(webconfig): expose mqtt.neighbors controls in the web portal
- Allow mqtt.neighbors and mqtt.neighbors.interval in the WebConfigKeys set-key allowlist (the CLI enforces the PSRAM guard; the stub reply handles non-PSRAM). - Emit neighbors + neighbors_interval (hours) in the WebConfigServer config JSON. - Add a "Publish neighbors" toggle and a "Neighbors interval (hours)" field (12-336) to the Publishing card, with getVal() cases in webui/index.html. - Cover both keys in test_webconfig_keys. WebConfigHtml.h is a gitignored build artifact regenerated by the pre-build hook from index.html, so it is not committed. Verified: test_webconfig_keys passes and the T_Beam_S3_Supreme observer_mqtt firmware builds [SUCCESS].
This commit is contained in:
1 parent
6911981573
commit
d6f8a87183
4 files changed
+15
-2
No files matched your search
@@ -12,6 +12,8 @@ TEST(WebConfigKeys, AllowsKnownScalarKeys) {
|
||||
EXPECT_TRUE(wcIsAllowedSetKey("repeat"));
|
||||
EXPECT_TRUE(wcIsAllowedSetKey("wifi.ssid"));
|
||||
EXPECT_TRUE(wcIsAllowedSetKey("mqtt.iata"));
|
||||
EXPECT_TRUE(wcIsAllowedSetKey("mqtt.neighbors"));
|
||||
EXPECT_TRUE(wcIsAllowedSetKey("mqtt.neighbors.interval"));
|
||||
EXPECT_TRUE(wcIsAllowedSetKey("snmp.community"));
|
||||
EXPECT_TRUE(wcIsAllowedSetKey("timezone.offset"));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user