This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

p_evt_write->len = 3 and p_evt_write->data contains only one char

Hi,

I get strange error. p_evt_write data array should contains 3 values but contain only one (first).

Please take a look: image description

What can be the reason and how to fix it?

Thanks!

Parents
  • Hi,

    this is like that because the data only points to the first byte (how it is defined in ble_gatts.h) , if you want to read the following bytes in the debugger you can just go to the memory location, and (0x20002468 in this case) and read the following two bytes.

Reply
  • Hi,

    this is like that because the data only points to the first byte (how it is defined in ble_gatts.h) , if you want to read the following bytes in the debugger you can just go to the memory location, and (0x20002468 in this case) and read the following two bytes.

Children
No Data
Related