This is from the documentation:
[in,out] | p_length | Pointer Length of the string. Amount of sent bytes. |
I'd translate it to a pointer to the requested length of the string to send and holds the actual sent number, like write() for example.
Now let's see at the example of usage:
err_code = ble_nus_data_send(&m_nus, data_array, &sent, m_conn_handle); if ( (err_code != NRF_ERROR_INVALID_STATE) && (err_code != NRF_ERROR_BUSY) && (err_code != NRF_ERROR_NOT_FOUND) ) { APP_ERROR_CHECK(err_code); } } while (err_code == NRF_ERROR_BUSY);
Apparently it doesn't matter.
Should my application take care of it or err_code will return some code that will let me know that something is not kosher?
Thanks.