discoverDevices static method
Implementation
static Future<int> discoverDevices() async {
//return = failure: 0 success: 1 wifi_is_off: 2
int isDiscoveryStarted =
(await _methodChannel.invokeMethod("discoverDevices")) as int;
return isDiscoveryStarted;
}