RadioMeshLink

class RadioMeshLink(radioController: RadioController, nodeRepository: NodeRepository) : MeshLink(source)

MeshLink over the app's radio connection.

Constructors

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

Properties

Link copied to clipboard
open override val notifications: StateFlow<ClientNotification?>

The radio's latest client notification, which carries its answer to an OTA request.

Functions

Link copied to clipboard
open override fun clearNotification()
Link copied to clipboard
open suspend override fun release()

Drops the mesh connection without reconnecting, freeing the radio's BLE link for the update.

Link copied to clipboard
open suspend override fun requestOtaReboot(mode: Int, hash: ByteArray?)

Asks the radio to reboot into its OTA loader for mode. A radio whose node number is unknown is not asked.