feat: 支持获取 maximumWrtieLength (#14)

This commit is contained in:
Mr剑侠客
2023-09-08 15:25:59 +08:00
committed by GitHub
parent 219bd73c33
commit 78bcb88563
28 changed files with 417 additions and 112 deletions

View File

@ -73,6 +73,12 @@ abstract class CentralController extends PlatformInterface {
/// Disconnects form the peripheral.
Future<void> disconnect(Peripheral peripheral);
/// Gets the max length in bytes for a single write type of the peripheral.
Future<int> getMaximumWriteLength(
Peripheral peripheral, {
required GattCharacteristicWriteType type,
});
/// Discovers GATT of the peripheral.
Future<void> discoverGATT(Peripheral peripheral);