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

How to use "ble_nus_string_send correctly" ?

Hello everybody, I try to send nus_string data. I bought different inputs and outputs like this;

INPUT;

while(ble_nus_string_send(&m_nus, (uint8_t *)"aaaaaaaaaaaaaaa", (uint16_t *)17) != NRF_SUCCESS);   // I wrote "a" 17 times

OUTPUT;

"aaaaa" received       // Send 5 times "a"

INPUT;

while(ble_nus_string_send(&m_nus, (uint8_t *)"aaaaaaaaaaaaaaaaa", (uint16_t *)19) != NRF_SUCCESS);     //I wrote "a" 19 times

OUTPUT;

There is no response!

1-Why do I see 5 characters when I enter 17 characters?

2-Why do not I see anything when I enter 19 characters?

3-How do I enter any characters and see all of it?

Thank you :)

Related