MeshActionHandler

Interface for handling UI-triggered actions and administrative commands for the mesh.

Functions

Link copied to clipboard
abstract fun handleBeginEditSettings(destNum: Int)

Begins editing settings on a remote node.

Link copied to clipboard
abstract fun handleCommitEditSettings(destNum: Int)

Commits settings edits on a remote node.

Link copied to clipboard
abstract fun handleGetCannedMessages(id: Int, destNum: Int)

Gets canned messages from a remote node.

Link copied to clipboard
abstract fun handleGetDeviceConnectionStatus(requestId: Int, destNum: Int)

Gets the connection status of a remote node.

Link copied to clipboard
abstract fun handleGetModuleConfig(id: Int, destNum: Int, config: Int)

Gets the module configuration of a remote node.

Link copied to clipboard
abstract fun handleGetRemoteChannel(id: Int, destNum: Int, index: Int)

Gets a channel configuration from a remote node.

Link copied to clipboard
abstract fun handleGetRemoteConfig(id: Int, destNum: Int, config: Int)

Gets the configuration of a remote node.

Link copied to clipboard
abstract fun handleGetRemoteOwner(id: Int, destNum: Int)

Gets the owner of a remote node.

Link copied to clipboard
abstract fun handleGetRingtone(id: Int, destNum: Int)

Gets the ringtone of a remote node.

Link copied to clipboard
abstract fun handleRebootToDfu(destNum: Int)

Reboots a remote node into DFU mode.

Link copied to clipboard
abstract fun handleRemoveByNodenum(nodeNum: Int, requestId: Int, myNodeNum: Int)

Removes a node from the database by its node number.

Link copied to clipboard
abstract fun handleRequestFactoryReset(requestId: Int, destNum: Int)

Requests a factory reset on a remote node.

Link copied to clipboard
abstract fun handleRequestNeighborInfo(requestId: Int, destNum: Int)

Requests neighbor information from a remote node.

Link copied to clipboard
abstract fun handleRequestNodedbReset(requestId: Int, destNum: Int, preserveFavorites: Boolean)

Requests a node database reset on a remote node.

Link copied to clipboard
abstract fun handleRequestPosition(destNum: Int, position: ERROR CLASS: Symbol not found for Position, myNodeNum: Int)

Requests the position of a remote node.

Link copied to clipboard
abstract fun handleRequestReboot(requestId: Int, destNum: Int)

Requests a remote node to reboot.

Link copied to clipboard
abstract fun handleRequestRebootOta(requestId: Int, destNum: Int, mode: Int, hash: ByteArray?)

Requests a remote node to reboot in OTA mode.

Link copied to clipboard
abstract fun handleRequestShutdown(requestId: Int, destNum: Int)

Requests a remote node to shut down.

Link copied to clipboard
abstract fun handleRequestTelemetry(requestId: Int, destNum: Int, type: Int)

Requests telemetry from a remote node.

Link copied to clipboard
abstract fun handleSend(p: ERROR CLASS: Symbol not found for DataPacket, myNodeNum: Int)

Sends a data packet through the mesh.

Link copied to clipboard
abstract fun handleSetCannedMessages(destNum: Int, messages: String)

Sets canned messages on a remote node.

Link copied to clipboard
abstract fun handleSetChannel(payload: ByteArray?, myNodeNum: Int)

Sets a channel configuration on the local node.

Link copied to clipboard
abstract fun handleSetConfig(payload: ByteArray, myNodeNum: Int)

Sets the configuration of the local node.

Link copied to clipboard
abstract fun handleSetModuleConfig(id: Int, destNum: Int, payload: ByteArray)

Sets the module configuration of a remote node.

Link copied to clipboard
abstract fun handleSetOwner(u: ERROR CLASS: Symbol not found for MeshUser, myNodeNum: Int)

Sets the owner of the local node.

Link copied to clipboard
abstract fun handleSetRemoteChannel(id: Int, destNum: Int, payload: ByteArray?)

Sets a channel configuration on a remote node.

Link copied to clipboard
abstract fun handleSetRemoteConfig(id: Int, destNum: Int, payload: ByteArray)

Sets the configuration of a remote node.

Link copied to clipboard
abstract fun handleSetRemoteOwner(id: Int, destNum: Int, payload: ByteArray)

Sets the owner of a remote node.

Link copied to clipboard
abstract fun handleSetRingtone(destNum: Int, ringtone: String)

Sets the ringtone of a remote node.

Link copied to clipboard
abstract fun handleUpdateLastAddress(deviceAddr: String?)

Updates the last used device address.

Link copied to clipboard
abstract fun onServiceAction(action: ERROR CLASS: Symbol not found for ServiceAction)

Processes a service action from the UI.

Link copied to clipboard
abstract fun start(scope: ERROR CLASS: Symbol not found for CoroutineScope)

Starts the handler with the given coroutine scope.