clearGattCache method
Refresh ble services & characteristics (Android Only)
Implementation
Future<void> clearGattCache() async {
// check android
if (Platform.isAndroid == false) {
throw FlutterBluePlusException(
ErrorPlatform.fbp, "clearGattCache", FbpErrorCode.androidOnly.index, "android-only");
}
// check connected
if (isDisconnected) {
throw FlutterBluePlusException(
ErrorPlatform.fbp, "clearGattCache", FbpErrorCode.deviceIsDisconnected.index, "device is not connected");
}
// invoke
await FlutterBluePlus._invokeMethod('clearGattCache', remoteId.str);
}