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

Read after write the new values to the characteristics

Hi,

I'm testing writing and reading at one of my characteristics in Master Control Panel v.3.7.1 (SoftDevice S110 v7.1.0). As shown in the following figure, firstly I've written "aaaaaa" value into it and then shorter "bbb" string. Finally, I pressed read button and received in response value "bbbaaa" value instead of "bbb" (When I'm writing shorter string in the next iteration I'm getting in reply the new value and the rest of the old one).

My gatt settings:

ble_gatts_attr_md_t attr_md;
attr_md.vloc       = BLE_GATTS_VLOC_STACK;
attr_md.rd_auth    = 0;
attr_md.wr_auth    = 0;
attr_md.vlen       = 0;

Do I need to turn on write authorization to get the correct value in the MCP when I read? image description

Related