sofdigital / DroidPython

Python app development with SL4A in Android Studio
MIT License
55 stars 17 forks source link

BluetoothFacade: any way to add BLE Gatt Client / Server #8

Closed ThLOCP closed 7 years ago

ThLOCP commented 7 years ago

Dear Project Members, Developping a lot around Bluetooth Low Energy, Bluetooth Facade offcially registred in sl4a does not include the BLE Facade to access a BLE Gatt Client / Server. I have seen .java file but it is still unknown by the RPC interpreter. I would like to ask you two questions:

michaelrinderle commented 7 years ago

can you provide a copy of your custom facade java file here and a segment on how it was registered with the rpc server?

ThLOCP commented 7 years ago

Thanks for you answer.

Since my post, I have worked hard : Thanks to kuri6536 who gave me help to start developping with the sl4a (https://github.com/kuri65536/sl4a). Now I did make work the BLE Facade.

Working on the curent state of the sl4a, I became aware that it would require a huge work to bring it at the state of Today's Android API. On my side I focused only on the part I need in my use case i.e. Bluetooth low Energy and a GATT Server Client. This includes Scanning, Device connection, Service Discovery, Characteristic Reading and Writing and Notification/Indication activation.

I will report my work to kuri65356 as soon as I have time to clean up (at least) the work I did so far. Also I guess I will it to the devzone of Nordic Semiconductor (https://devzone.nordicsemi.com/), to help developpers like me that would hardly need BLE in python that is really great, flexible, effective and quite powerful.

Best regards