link
fun link(identity: TransportIdentity, ble: Boolean, scope: CoroutineScope, provider: RadioTransportProvider, gattCache: GattCacheRefresh? = null, failureReason: (MeshtasticException) -> TransportDisconnectReason? = { null }, close: () -> Unit = {}): RadioLink(source)
A link whose client asks provider for a transport before every attempt.
Parameters
gattCache
the link's Bluetooth transport, whose cached GATT table a firmware update can make stale
failureReason
reads a failure of this kind of link in terms the user can act on
close
releases what provider holds once the client has disconnected