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

ble_gatts_evt_write_t questions

I have some questions about how I will use this structure ,first of all I know that The "data" member of the ble_gatts_evt_write_t is meant as a placeholder for the address in memory where the array containing the data received over the air lives. This means that, without modifying the header file, you can simply get the data by accessing:ble_gatts_evt_write_t::data[0 .. len-1] So assuming that ble_gatts_evt_write_t::len was 10, you could access: ble_gatts_evt_write_t::data[0] .. ble_gatts_evt_write_t::data[9]

I have two somethings that confused me: what will happen if I didn't send packets for a while and the chip didn't sleep then I send again packets will it write starting from data[0] or will complete on the array?

the same case but the chip in this case go to sleep and then I started to send again.

Parents Reply Children
No Data
Related