feat(settings): add device telemetry toggle (#3166)

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
James Rich 2025-09-23 06:26:35 -05:00 committed by GitHub
parent b98e533123
commit ce8bd943d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 0 deletions

View file

@ -55,6 +55,16 @@ fun TelemetryConfigScreen(navController: NavController, viewModel: RadioConfigVi
) {
item { PreferenceCategory(text = stringResource(R.string.telemetry_config)) }
item {
SwitchPreference(
title = stringResource(R.string.device_telemetry_enabled),
summary = stringResource(R.string.device_telemetry_enabled_summary),
checked = formState.value.deviceTelemetryEnabled,
enabled = state.connected,
onCheckedChange = { formState.value = formState.value.copy { deviceTelemetryEnabled = it } },
)
}
item {
EditTextPreference(
title = stringResource(R.string.device_metrics_update_interval_seconds),

View file

@ -899,4 +899,6 @@
<string name="secondary_channel_position_feature">Disabling position on the primary channel allows periodic position broadcasts on the first secondary channel with the position enabled, otherwise manual position request required.</string>
<string name="device_configuration">Device configuration</string>
<string name="remotely_administrating">"[Remote] %1$s"</string>
<string name="device_telemetry_enabled">Send Device Telemetry</string>
<string name="device_telemetry_enabled_summary">Enable/Disable the device telemetry module to send metrics to the mesh</string>
</resources>