MeshNetwork

actual fun MeshNetwork(builder: MeshNetworkBuilder.() -> Unit): MeshNetwork

Android implementation of MeshNetwork factory.

Creates a fully functional MeshNetworkImpl backed by core kmp-ble APIs. BLE Mesh on Android uses the GATT Proxy bearer via Peripheral.connect() and optionally PB-ADV via Scanner for unprovisioned device discovery.

expect fun MeshNetwork(builder: MeshNetworkBuilder.() -> Unit): MeshNetwork

Platform-specific factory for MeshNetwork.

Android and iOS provide full BLE Mesh support via core kmp-ble APIs. JVM throws MeshNotSupported since there is no Bluetooth stack.

actual fun MeshNetwork(builder: MeshNetworkBuilder.() -> Unit): MeshNetwork

iOS implementation of MeshNetwork factory.

Creates a fully functional MeshNetworkImpl backed by core kmp-ble APIs. BLE Mesh on iOS uses the GATT Proxy bearer via CoreBluetooth.

actual fun MeshNetwork(builder: MeshNetworkBuilder.() -> Unit): MeshNetwork

JVM implementation of MeshNetwork factory.

Creates a MeshNetworkImpl backed by core kmp-ble APIs, so the GATT Proxy bearer runs over whichever JVM backend is on the classpath (kmp-ble-bluez on Linux, kmp-ble-macos on macOS arm64). Connecting throws UnsupportedOperationException when no backend applies.