Hi,
I'm trying to emulate a server device with pc-ble-driver-py, I recently moved from version 0.11.4 using Python 2.7.12 to version 0.14.0 using Python 3.7.4. I'm trying to perform these tasks on a nrf52840 dongle with the connectivity FW and S132 SoftDevice:
- Adding a custom service
- Adding two custom characteristics to that service
On both versions I've been able to add the custom service but I've had some problems adding the characteristics.
On the older version I did it but on the newer one I noticed that you created new classes to help this process, and I tried to repeat the process in this scenario. I'm not able to make it work properly so I'm trying to understand if I am missing something. To work around this issue I managed to perform the tasks calling directly the soft-device function instead of the higher level methods.
Old version:
New version:
With the new version I actually can add the characteristics but when I try to read or write from the client it's not possible. So I suppose that the problem is something related to read and write permissions, but I've not found out where to initialize them in the properties of the new classes, so I've got back to the old solution calling directly the SoftDevice function sd_ble_gatts_characteristic_add().
I hope you could help me figuring out where I'm missing something
Thank you in advance,
Best regards
Mirko