Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Help]: c.write not response on verison 1.28.8+, but ok on version 1.26.4 #679

Closed
1 task done
nuxwork opened this issue Nov 13, 2023 · 1 comment
Closed
1 task done
Labels
help Questions, help, observations, or possible bugs

Comments

@nuxwork
Copy link

nuxwork commented Nov 13, 2023

Requirements

  • I've looked at the README 'Common Problems' section

Have you checked this problem on the example app?

Yes

FlutterBluePlus Version

1.28.8+

Flutter Version

3.13.1

What OS?

Android

OS Version

android Q

Bluetooth Module

Nordic/nrf52810/1.6

What is your problem?

c.write not response on verison 1.28.8+, but ok on version 1.26.4

Logs

v1.28.8+
I/flutter (27600): CAM8Z6_NoName_G_E8 connectionState BluetoothConnectionState.connected
D/[FBP-Android](27600): [FBP] onMethodCall: requestMtu
D/BluetoothGatt(27600): configureMTU() - device: ED:61:21:A9:C2:09 mtu: 512
D/[FBP-Android](27600): [FBP] onMethodCall: getAdapterState
D/BluetoothGatt(27600): onConnectionUpdated() - Device=ED:61:21:A9:C2:09 interval=6 latency=0 timeout=500 status=0
D/BluetoothGatt(27600): onConfigureMTU() - Device=ED:61:21:A9:C2:09 mtu=247 status=0
D/[FBP-Android](27600): [FBP] onMtuChanged: mtu: 247 status: 0
I/flutter (27600): === writeBle
D/[FBP-Android](27600): [FBP] onMethodCall: requestMtu
D/BluetoothGatt(27600): configureMTU() - device: ED:61:21:A9:C2:09 mtu: 512
D/[FBP-Android](27600): [FBP] onMethodCall: getAdapterState
D/BluetoothGatt(27600): onConnectionUpdated() - Device=ED:61:21:A9:C2:09 interval=39 latency=0 timeout=500 status=0
D/BluetoothGatt(27600): onConfigureMTU() - Device=ED:61:21:A9:C2:09 mtu=247 status=4
D/[FBP-Android](27600): [FBP] onMtuChanged: mtu: 247 status: 4
D/[FBP-Android](27600): [FBP] onMethodCall: discoverServices
D/BluetoothGatt(27600): discoverServices() - device: ED:61:21:A9:C2:09
D/[FBP-Android](27600): [FBP] onMethodCall: getAdapterState
D/BluetoothGatt(27600): onSearchComplete() = Device=ED:61:21:A9:C2:09 Status=0
D/[FBP-Android](27600): [FBP] onServicesDiscovered: count: 3 status: 0
I/flutter (27600): devices.length = 2
I/flutter (27600): ======== 0000ffb0-0000-1000-8000-00805f9b34fb
I/flutter (27600): ======= write...............
D/BluetoothGatt(27600): onConnectionUpdated() - Device=ED:61:21:A9:C2:09 interval=60 latency=0 timeout=400 status=0

v1.26.4
I/flutter (27946): CAM8Z6_NoName_G_E8 connectionState BluetoothConnectionState.connected
D/[FBP-Android](27946): [FBP] onMethodCall: requestMtu
D/BluetoothGatt(27946): configureMTU() - device: ED:61:21:A9:C2:09 mtu: 512
D/[FBP-Android](27946): [FBP] onMethodCall: getAdapterState
D/BluetoothGatt(27946): onConnectionUpdated() - Device=ED:61:21:A9:C2:09 interval=6 latency=0 timeout=500 status=0
D/BluetoothGatt(27946): onConfigureMTU() - Device=ED:61:21:A9:C2:09 mtu=247 status=0
D/[FBP-Android](27946): [FBP] onMtuChanged: mtu: 247 status: 0
I/flutter (27946): === writeBle
D/[FBP-Android](27946): [FBP] onMethodCall: requestMtu
D/BluetoothGatt(27946): configureMTU() - device: ED:61:21:A9:C2:09 mtu: 512
D/[FBP-Android](27946): [FBP] onMethodCall: getAdapterState
D/BluetoothGatt(27946): onConnectionUpdated() - Device=ED:61:21:A9:C2:09 interval=39 latency=0 timeout=500 status=0
D/BluetoothGatt(27946): onConfigureMTU() - Device=ED:61:21:A9:C2:09 mtu=247 status=4
D/[FBP-Android](27946): [FBP] onMtuChanged: mtu: 247 status: 4
D/[FBP-Android](27946): [FBP] onMethodCall: discoverServices
D/BluetoothGatt(27946): discoverServices() - device: ED:61:21:A9:C2:09
D/[FBP-Android](27946): [FBP] onMethodCall: getAdapterState
D/BluetoothGatt(27946): onSearchComplete() = Device=ED:61:21:A9:C2:09 Status=0
D/[FBP-Android](27946): [FBP] onServicesDiscovered: count: 3 status: 0
I/flutter (27946): devices.length = 2
I/flutter (27946): ======== 0000ffb0-0000-1000-8000-00805f9b34fb
I/flutter (27946): ======= write...............
D/[FBP-Android](27946): [FBP] onMethodCall: writeCharacteristic
D/[FBP-Android](27946): [FBP] onMethodCall: getAdapterState
D/[FBP-Android](27946): [FBP] onCharacteristicWrite: uuid: 0000ffb1-0000-1000-8000-00805f9b34fb status: 0
I/flutter (27946): write end
@nuxwork nuxwork added the help Questions, help, observations, or possible bugs label Nov 13, 2023
@chipweinberger
Copy link
Collaborator

I dont see "D/FBP-Android: [FBP] onMethodCall: writeCharacteristic" in your new logs.

It appears you are not writing anything.

in recent versions we now return short UUID. this is your problem.

see #677 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help Questions, help, observations, or possible bugs
Projects
None yet
Development

No branches or pull requests

2 participants