Once I'm connected to a bluetooth device I try to read and write a request by handle or uuid (I tried both) with no success.
I'm using this library gattlib-master which works for the examples of ble_scan and discover with little changes.
The problem is that the example read_write, never fills the buffer used in both functions
gattlib_read_char_by_uuid(connection, &g_uuid, buffer, sizeof(buffer)); and
gattlib_write_char_by_handle(connection, handle, buffer, sizeof(buffer));
Any idea of were could the problem be? If not, can anyone tell me where could I find read/write examples with Bluez for Linux in C/C++?
Thanks in advance.