stopDiscovery static method
dynamic
stopDiscovery()
Implementation
static stopDiscovery() async {
if (AliIotPlugin.debug) {
print("$TAG : stopDiscovery");
}
try {
if (_startDiscoverySubscription != null) {
_startDiscoverySubscription?.cancel();
_startDiscoverySubscription = null;
}
} catch (e) {
print(e);
}
AliIotPlugin.methodChannel.invokeMethod('stopDiscovery');
}