connect

suspend fun connect(address: String? = null): Result<String>(source)

Scan for a device advertising the nymea wireless service and connect to it.

Return

The discovered device's advertised name on success.

Parameters

address

Optional MAC address filter. If null, the first advertising device is used.

Throws

if no device is found within SCAN_TIMEOUT.