discoverServices
suspend fun discoverServices(nsdServiceInfo: NsdServiceInfo = NsdServiceInfo()
.apply {
serviceName = "wifiprov"
serviceType = "_http._tcp."
})
Discovers and resolves the mDNS services on the network.
Note: If the mDNS service on the Soft AP is to be discovered make sure to call connect before calling this method.
Parameters
nsdServiceInfo
NsdServiceInfo to be discovered.
Throws
if the wifi is not enabled.