AdminActionsUseCase

open class AdminActionsUseCase(radioController: ERROR CLASS: Symbol not found for RadioController, nodeRepository: ERROR CLASS: Symbol not found for 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: ERROR CLASS: Symbol not found for RadioController, nodeRepository: ERROR CLASS: Symbol not found for NodeRepository)

Functions

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

Factory resets the radio.

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

Resets the NodeDB on the radio.

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

Reboots the radio.

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

Shuts down the radio.