Open Vpiro opened 1 year ago
Hi, most likely you forgot to change the UUIDs that are hardcoded on the code here please change those UUIDs to the ones from your device.
Thank you for info, the app is not crashing anymore, I have commented the characteristic subscription at row 66 (_on_characteristic_finding method) It should use the service_uuid that has been just discovered.
Good morning, I have worked on your bluetooth demo (I will share with you my improvements at the end). I can discover all devices and query all services (using a dictionary to recognize standard ones), the app crashes when I try to subscribe to a characteristic using; GodotBluetooth344.subscribeToCharacteristic(characteristic.service_uuid, characteristic.characteristic_uuid) For this purpose, I use the current characteristic dictionary just discovered in _on_characteristic_found method.
Reading from the site: https://github.com/pablojimenezmateo/GodotAndroidBluetoothPlugin I see this syntax of the following method: GodotBluetooth344.subscribeToCharacteristic(service_uuid, read_uuid) the 2nd parameter should be characteristic_uuid as I see in the arguments specified in the same page.
Could you help me to undestand if I am using correctly this routine. Thank you Vincenzo MainScene.gd.txt MainScene.tscn.txt
Hi Vincenzo,
I am currently on vacations but I will be back on Monday, let me check it then and we can work together on this.
Have a nice time! And thank you for your support
Hi, just to send you fixed version of plugin. Now the godot app works correctly without crashes, receving all signals from plugin. Some fixes:
Bye, have a nice weekend
[BluetoothManager.java.txt] (https://github.com/pablojimenezmateo/GodotAndroidBluetoothDemo/files/10197292/BluetoothManager.java.txt)
Hi, just to send you fixed version of plugin. Now the godot app works correctly without crashes, receving all signals from plugin. Some fixes:
Bye, have a nice weekend
[BluetoothManager.java.txt] (https://github.com/pablojimenezmateo/GodotAndroidBluetoothDemo/files/10197292/BluetoothManager.java.txt)
Hi, I am just trying the compiled apk on my android phone, after scan I am trying to connect to a discovered device but it crashes and exits. How can I understand the problem in order to print the error? Thank you Vincenzo