Keep MQTT command persistence in common prefs
This commit is contained in:
1 parent
7cfbd7796d
commit
70f2d511cb
4 files changed
+21
-15
No files matched your search
@@ -63,6 +63,7 @@ COMMON_QUERY_EXCEPTIONS = {
|
||||
}
|
||||
OBSERVER_QUERY_EXCEPTIONS = {
|
||||
'mqtt.config.valid': 'Configuration validation result',
|
||||
'mqtt.enabled': 'Stored in common NodePrefs; set mqtt.enabled is handled by CommonCLI',
|
||||
'mqtt.ntp.diag': 'NTP diagnostics',
|
||||
'mqtt.presets': 'List of available presets',
|
||||
'mqtt.running': 'Live state; set mqtt.enabled controls intent',
|
||||
|
||||
@@ -120,7 +120,7 @@ class EspNowLifecycleTests(unittest.TestCase):
|
||||
self.assertIn('uint8_t espnow_bridge_enabled = 1;', prefs)
|
||||
self.assertIn('setEspNowBridgeState(enable)', common)
|
||||
self.assertIn('_prefs->espnow_bridge_enabled', common)
|
||||
self.assertIn('setMqttBridgeState(enable)', observer)
|
||||
self.assertIn('setMqttBridgeState(enable)', common)
|
||||
self.assertIn('isMqttBridgeRunning()', observer)
|
||||
for role in ('simple_repeater', 'simple_room_server'):
|
||||
header = (ROOT/f'examples/{role}/MyMesh.h').read_text()
|
||||
|
||||
Reference in new issue
Block a user