clearGattCache method

Future<void> clearGattCache(
  1. String deviceId
)

Clears GATT attribute cache on Android using undocumented API. Completes with an error in case of a failure.

Always completes with an error on iOS, as there is no way (and no need) to perform this operation on iOS.

The connection may need to be reestablished after successful GATT attribute cache clearing.

Implementation

Future<void> clearGattCache(String deviceId) =>
    _blePlatform.clearGattCache(deviceId).then((info) => info.dematerialize());