我试图使一个扑动应用程序获取数据(心率,spo2,......)从我的智能手表。我不知道是wearOS还是tizen之类的。这是fire bolt品牌的智能手表。我目前正在使用flutter_ble蓝牙功能。我正在从蓝牙客户端获得服务和特性。但不知道哪些数据对应于哪些数据。我该怎么解决这个问题?
这是我收到的数据的一个例子:
BluetoothService{uuid: 0000180f-0000-1000-8000-00805f9b34fb,
deviceId: F9:CE:08:3E:0B:31,
isPrimary: true,
characteristics: [BluetoothCharacteristic{
uuid: 00002a19-0000-1000-8000-00805f9b34fb,
deviceId: F9:CE:08:3E:0B:31,
serviceUuid: 0000180f-0000-1000-8000-00805f9b34fb,
secondaryServiceUuid: null,
properties: CharacteristicProperties{
broadcast: false,
read: true,
writeWithoutResponse: false,
write: false,
notify: true,
indicate: false,
authenticatedSignedWrites: false,
extendedProperties: false,
notifyEncryptionRequired: false,
indicateEncryptionRequired: false},
descriptors: [BluetoothDescriptor{
uuid: 00002902-0000-1000-8000-00805f9b34fb,
deviceId: F9:CE:08:3E:0B:31,
serviceUuid: 0000180f-0000-1000-8000-00805f9b34fb,
characteristicUuid: 00002a19-0000-1000-8000-00805f9b34fb,
value: []}],
value: []],
includedServices: []}
只要设备支持标准服务和特性,这里是蓝牙UUID列表:16位UUID编号文档。
检查设备支持哪些服务的简单方法是使用蓝牙内部,chrome://bluetooth-internals/#devices
,