ProvisionerRepositoryImpl

Functions

Link copied to clipboard
open suspend override fun forgetConfig()

Unprovision the DK - forget slected SSID, password, etc.

Link copied to clipboard
open suspend override fun getStatus(): DeviceStatusDomain

Read device status.

Link copied to clipboard
open suspend override fun readVersion(): VersionDomain

Read the current version.

Link copied to clipboard
open override fun release()

Closes connection with the DK.

Link copied to clipboard
open override fun setConfig(config: WifiConfigDomain): Flow<WifiConnectionStateDomain>

Provision the connected DK with data obtained from startScan + password.

Link copied to clipboard
open suspend override fun start(device: BluetoothDevice): Flow<ConnectionStatus>

Connects and initialise bonding with a selected device.

Link copied to clipboard
open override fun startScan(): Flow<ScanRecordDomain>

Start scanning and obtains available Wi-Fi list.

Link copied to clipboard
open suspend override fun stopScan()

Stop scanning for available Wi-Fi's. Should be called after startScan.