SoftApManager

class SoftApManager(context: Context, hostNameConfiguration: HostNameConfiguration = HostNameConfiguration())

Entry point to the SoftApManager.

Parameters

context

Context of the application.

hostNameConfiguration

HostNameConfiguration to be used for the SoftApManager.

Constructors

Link copied to clipboard
constructor(context: Context, hostNameConfiguration: HostNameConfiguration = HostNameConfiguration())

Create empty SoftApManager.

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
@RequiresApi(value = 29)
suspend fun connect(ssid: String, passphraseConfiguration: PassphraseConfiguration)

Connects to an unprovisioned wifi device by establishing a temporary wifi network connection with the given ssid and the password.

Link copied to clipboard
@RequiresApi(value = 29)
fun disconnect()

Disconnects from an unprovisioned or a newly provisioned device.

Link copied to clipboard
suspend fun discoverServices(nsdServiceInfo: NsdServiceInfo = NsdServiceInfo() .apply { serviceName = "wifiprov" serviceType = "_http._tcp." })

Discovers and resolves the mDNS services on the network.

Link copied to clipboard

Lists the SSIDs scanned by the nRF700x device

Link copied to clipboard
suspend fun provision(config: WifiConfigDomain): Response<ResponseBody>

Provisions the nRF7002 device a wifi network with the given credentials.

Link copied to clipboard
suspend fun verify(): Boolean

Verifies if the provisioning completed successfully.