createBleMdocTransport
fun createBleMdocTransport(connectionMethod: MdocConnectionMethod.Ble, role: MdocRole, options: MdocTransportOptions = MdocTransportOptions(), centralConfig: BleCentralConfig = BleCentralConfig(), centralHalFactory: () -> BleCentralHal, peripheralHalFactory: () -> BlePeripheralHal): MdocTransport
Creates a BLE MdocTransport for a single-mode connectionMethod and role backed by the given centralHalFactory and peripheralHalFactory.
Return
an MdocTransport ready to advertise or open.
Parameters
connectionMethod
the single-mode BLE connection method.
role
the mdoc role (MdocRole.MDOC or MdocRole.MDOC_READER).
options
options for the MdocTransport.
centralConfig
retry, scan-restart, and L2CAP parameters used when this endpoint acts as BLE Central.
centralHalFactory
factory invoked to create a BleCentralHal when this endpoint acts as BLE Central.
peripheralHalFactory
factory invoked to create a BlePeripheralHal when this endpoint acts as BLE Peripheral.
Throws
if connectionMethod is missing required uuid or psm parameters.