MeshLink

interface MeshLink(source)

What a firmware update needs from the app's mesh connection to the radio.

Inheritors

Properties

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

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

Functions

Link copied to clipboard
abstract fun clearNotification()
Link copied to clipboard
abstract suspend fun release()

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

Link copied to clipboard
abstract suspend 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.