Hi !
I am using NRF52DK and I want send some daat with BLE. I have to send 800 bytes in BLE by packages of 25. So I tried this :
for(j=0; j<16; j++) { for (i = 0; i < 25; i++) { value[i] = i; value1[i] = (j*25)+i; } err_code = ble_nus_string_send(&m_nus, value, &tempo); if ((err_code != NRF_SUCCESS) && (err_code != NRF_ERROR_INVALID_STATE) && (err_code != NRF_ERROR_RESOURCES) && (err_code != BLE_ERROR_GATTS_SYS_ATTR_MISSING) ) { APP_ERROR_HANDLER(err_code); } err_code = ble_nus_string_send(&m_nus, value1, &tempo); if ((err_code != NRF_SUCCESS) && (err_code != NRF_ERROR_INVALID_STATE) && (err_code != NRF_ERROR_RESOURCES) && (err_code != BLE_ERROR_GATTS_SYS_ATTR_MISSING) ) { APP_ERROR_HANDLER(err_code); } printf("\t%d\n", err_code); printf("\t[%d]\n", j);
BUT when I look my uart terminal, I can read only 3 times a "0" on err_code and "19" on 13 others times.
So i would like know if someone can explain me why I have this "Not enough ressources for operation" error. And how can i solve it ? :)
Best regards.
Séraphin