chipweinberger / flutter_blue_plus

Flutter plugin for connecting and communicationg with Bluetooth Low Energy devices, on Android, iOS, macOS
Other
791 stars 479 forks source link

[Issue]: discoverServices: GATT_ATTR_NOT_FOUND (10) #867

Closed kalismeras61 closed 7 months ago

kalismeras61 commented 7 months ago

Requirements

Have you checked this problem on the example app?

Yes

FlutterBluePlus Version

1.32.2

Flutter Version

3.19.5

What OS?

Android

OS Version

Android 14

Bluetooth Module

Device it self

What is your problem?

I have one HR strap device ( Coros HR Strap) and it is working fine with device app and also Polar APP ( most used one). Also i can able to connect with other straps so assume my implementation works fine. But when i try to connect my own app it is returning below error and not connecting. It works fine on IOS but android have an issue.

E/FBP-Android: [FBP] onDescriptorWrite: E/FBP-Android: [FBP] chr: 2a05 E/FBP-Android: [FBP] desc: 2902 E/FBP-Android: [FBP] status: GATT_ATTR_NOT_FOUND (10) I/flutter (22643): [FBP] [[ OnDescriptorWritten ]] result: {error_string: GATT_ATTR_NOT_FOUND, service_uuid: 1801, success: 0, remote_id: EA:6A:17:FB:E8:97, descriptor_uuid: 2902, error_code: 10, characteristic_uuid: 2a05, value: 0200}

Logs

E/[FBP-Android](22643): [FBP] onDescriptorWrite:
E/[FBP-Android](22643): [FBP]   chr: 2a05
E/[FBP-Android](22643): [FBP]   desc: 2902
E/[FBP-Android](22643): [FBP]   status: GATT_ATTR_NOT_FOUND (10)
I/flutter (22643): [FBP] [[ OnDescriptorWritten ]] result: {error_string: GATT_ATTR_NOT_FOUND, service_uuid: 1801, success: 0, remote_id: EA:6A:17:FB:E8:97, descriptor_uuid: 2902, error_code: 10, characteristic_uuid: 2a05, value: 0200}
chipweinberger commented 7 months ago

that's the service changed characteristic

you can set subscribeToServicesChangedCharacteristic to false in discoverServices

thanks for reporting

kalismeras61 commented 7 months ago

It is fixed. Thanks