invoke

open suspend operator fun invoke(destNum: Int, profile: DeviceProfile, currentUser: User?, currentLoraConfig: Config.LoRaConfig?, isLocal: Boolean)(source)

Installs the provided DeviceProfile onto the radio at destNum.

Parameters

destNum

The destination node number.

profile

The device profile to install.

currentUser

The current user configuration of the destination node (to preserve names if not in profile).

Throws

when any profile write is refused locally.

when the begin or commit boundary is refused locally.

when a fixed-position profile is installed before the local node identity is available.

when the profile channel URL or channel set is invalid. This is raised before the edit transaction opens, so no partial profile is applied.