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

ble_nus_c_string_send maximum message length

Hi. I send 240 byte long messages using ble_nus_c_string_send at the moment. 

How come the length field is a uint16_t if the max size is 247 bytes? Is it for future proofing or is it possible to send more than 256 using the NUS service, and does it automatically split up and rebuild the message string?

Thanks

uint32_t ble_nus_c_string_send ( ble_nus_c_t  p_ble_nus_c,
uint8_t *  p_string,
uint16_t  length 
)
Parents Reply Children
No Data
Related