Hello,
I'd like to send 16 bits data over ble instead of 8 bits
gatts_value.offset = 0;
gatts_value.len = len;
gatts_value.p_value = data;
err_code = sd_ble_gatts_value_set(conn_handle, value_handle, &gatts_value);
for len I set the value to 2 and cast the 16 bits to 8 bits by (uint8_t*)data.
Unfortunately I get this error:
APP ERROR: 12, line: 105, file: src/bluetooth/base_service.c
EDIT: line 105 is err_code = sd_ble_gatts_value_set(conn_handle, value_handle, &gatts_value);
Please help me.
Thank you in advance
~Taz