MeshConfigHandler

Interface for handling device and module configuration updates.

Properties

Link copied to clipboard
abstract val localConfig: StateFlow<LocalConfig>

Reactive local configuration.

Link copied to clipboard
abstract val moduleConfig: StateFlow<LocalModuleConfig>

Reactive local module configuration.

Functions

Link copied to clipboard
abstract fun handleChannel(channel: Channel, session: RadioSessionContext): Boolean

Handles a received channel configuration.

Link copied to clipboard
abstract fun handleDeviceConfig(config: Config, session: RadioSessionContext): Boolean

Handles a received device configuration.

Link copied to clipboard
abstract fun handleDeviceUIConfig(config: DeviceUIConfig, session: RadioSessionContext): Boolean

Handles the DeviceUIConfig received during the config handshake (STATE_SEND_UIDATA). This arrives as the 2nd packet in every handshake, immediately after my_info.

Link copied to clipboard
abstract fun handleModuleConfig(config: ModuleConfig, session: RadioSessionContext): Boolean

Handles a received module configuration.

Link copied to clipboard
abstract fun handleRegionPresets(map: LoRaRegionPresetMap, session: RadioSessionContext): Boolean

Handles the LoRaRegionPresetMap received during the config handshake (after metadata, before channels). It describes which modem presets are legal in each LoRa region. Absent on firmware older than 2.8.