...but this only writes one byte. I cannot write more than one byte without it throwing the error:
GDBus.Error:org.bluez.Error.InvalidArguments: Invalid Length.
I have tried finding where the failure is to little avail. If this is a bug, I'm happy to fix it with a little direction. If it is my system, please advise:
I managed to circumvent this error by modifying the example thusly:
uint8_t val = value_data & 0xff;
ret = gattlib_write_char_by_uuid(connection, &g_uuid, &val, sizeof(val));
...but this only writes one byte. I cannot write more than one byte without it throwing the error: GDBus.Error:org.bluez.Error.InvalidArguments: Invalid Length.
I have tried finding where the failure is to little avail. If this is a bug, I'm happy to fix it with a little direction. If it is my system, please advise:
arch: amd64 debian_version: 10.4 bluez version: 5.50-1.2~deb10u1