mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-19 17:22:59 +00:00
Let StoreForward server send history to phoneAPI (#4282)
* Send StoreForward history of the server to a connected client To extend the ToPhoneQueue * Add delay after sending history info * Don't allow history request over LoRa on default channel --------- Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
This commit is contained in:
@@ -392,6 +392,11 @@ void AdminModule::handleSetConfig(const meshtastic_Config &c)
|
||||
// Router Client is deprecated; Set it to client
|
||||
if (c.payload_variant.device.role == meshtastic_Config_DeviceConfig_Role_ROUTER_CLIENT) {
|
||||
config.device.role = meshtastic_Config_DeviceConfig_Role_CLIENT;
|
||||
if (moduleConfig.store_forward.enabled && !moduleConfig.store_forward.is_server) {
|
||||
moduleConfig.store_forward.is_server = true;
|
||||
changes |= SEGMENT_MODULECONFIG;
|
||||
requiresReboot = true;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case meshtastic_Config_position_tag:
|
||||
|
||||
Reference in New Issue
Block a user