This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Expose service to BLE pheripheral using pc-ble-driver-py

Hello all,

I am using the pc-ble-driver-py python bindings (which depends on pc-ble-driver) to test my BLE peripheral

It works fine for reading and writing characteristics on the BLE peripheral. However, I also would like to expose the current time service to the peripheral.

I don't know how to do this. Could someone point me into the right direction? Do I need to write python bindings for the gatt server soft-device calls?

Is there any example code available, maybe in c or c++?

Thanks in advance!

Parents
  • the pc-ble-driver-py implemented on top of the pc-ble-driver. I assume you already find the examples of the python binding on the git repo. We don't have other examples than that, but I assume you can get how it work by looking at the example. What you would need to do is to implementing similar to what we have done but for the ble_gatts_impl.cpp APIs.

Reply
  • the pc-ble-driver-py implemented on top of the pc-ble-driver. I assume you already find the examples of the python binding on the git repo. We don't have other examples than that, but I assume you can get how it work by looking at the example. What you would need to do is to implementing similar to what we have done but for the ble_gatts_impl.cpp APIs.

Children
Related