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

A method of communicating data of 244 bytes or more by one communication

Is it ok to execute the following program twice in succession when communicating data of 244 bytes or more with one communication?

do
{
    err_code = ble_nus_data_send(&m_nus, value, &bytes_to_send, 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);


Thanking you in advance

 

Related