discoverServices method
发现指定 BLE 设备的 GATT 服务。
参数:
deviceId:已连接设备标识,无默认值。调用读写特征/描述符前应先调用本方法; Linux 从 BlueZ ObjectManager 读取已解析的 GATT 层级;Web 只能发现设备选择时已授权的服务, 建议在 startScan 传入目标serviceUuids。
Implementation
Future<List<BluetoothGattService>> discoverServices(String deviceId) {
throw UnimplementedError('discoverServices() has not been implemented.');
}