advertise

@RequiresPermission(allOf = ["android.permission.BLUETOOTH_ADVERTISE"])
abstract fun advertise(config: BleAdvertisingConfig): Flow<BleAdvertisingEvent>

Starts BLE advertising.

Return

Flow which emits advertisement process status changes (BleAdvertisingEvent).

Parameters

config

Advertising configuration BleAdvertisingConfig.


Starts BLE advertising locally on a device. The devices should be returned by NordicScanner during scanning.

Return

which emits advertisement process status changes (BleAdvertisingEvent).

Parameters

config

Advertising configuration BleAdvertisingConfig.

mock

MockServerDevice which will advertise locally on a device.