AdminActionsUseCase

open class AdminActionsUseCase(radioController: RadioController, nodeRepository: NodeRepository)(source)

Use case for performing administrative and destructive actions on mesh nodes.

This component provides methods for rebooting, shutting down, or resetting nodes within the mesh. It also handles local database synchronization when these actions are performed on the locally connected device.

Constructors

Link copied to clipboard
constructor(radioController: RadioController, nodeRepository: NodeRepository)

Functions

Link copied to clipboard
open suspend fun factoryReset(destNum: Int, isLocal: Boolean): Int

Factory resets the radio.

Link copied to clipboard
open suspend fun nodedbReset(destNum: Int, preserveFavorites: Boolean, isLocal: Boolean): Int

Resets the NodeDB on the radio.

Link copied to clipboard
open suspend fun reboot(destNum: Int): Int

Reboots the radio.

Link copied to clipboard
open suspend fun shutdown(destNum: Int): Int

Shuts down the radio.