I'm having trouble writing to a gatt characteristic using the python bindings for pc-ble-driver Service discovery works fine, I managed to connect to a BLE server and reading its characteristics but I cannot write a characteristic value.
I'm running the client via an NRF51 dongle which runs an sd_api_v2 The server is running a BLEUART GATT service via an NRF8001 chip, it is working properly (tested with another client)
I'm modifying the HRCollector.py example. I've tried using adapter.write_cmd(conn_handle, uuid, data) where:
- conn_handle was is the handle I got from the connected event
- uuid is theUUID of the RX characteristic
- data = bytearray("HELLO")
No exception was raised, but the BLE server got no data (no event was issued by the NRF8001 chip on the slave device)
Is there a minimal working example of writing a characteristic using pc-ble-driver-py? I only found the HRCollector example which only reads data