add shutdown & reboot admin commands

This commit is contained in:
andrekir 2022-06-06 17:29:09 -03:00
parent 6c6b22ad7d
commit 47793a2086
5 changed files with 82 additions and 0 deletions

View file

@ -279,6 +279,14 @@ class UIViewModel @Inject constructor(
}
}
fun requestShutdown() {
meshService?.requestShutdown(DataPacket.ID_LOCAL)
}
fun requestReboot() {
meshService?.requestReboot(DataPacket.ID_LOCAL)
}
/**
* Write the persisted packet data out to a CSV file in the specified location.
*/