Hello everyone,
at the moment I am working on a BLE program which collects data from various sensors and passes it to a Central device.
For the transmission the BLE NUS service is used. When the peripheral device collects data from sensor, the advertising is started
and tries to connect to the central device. If this connection is successful, the data from the peripheral device is sent to the central device using the ble_nus_data_send() function. After each call of ble_nus_data_send() the event BLE_NUS_EVT_TX_RDY is waited for and only then the next data is transferred. If I send 300 to 400 records, 1-2 records will be lost.
Is it ensured, if I wait for the event BLE_NUS_EVT_TX_RDY, that these data really arrived at the central device?
Or is it better that the central device confirms every single data record from the peripheral device?
Central device:
-> SoftDevice version: 7.0.1 (S132)
-> Hardware: nRF52810
Peripheral device:
-> SoftDevice version: 7.0.1 (S113)
-> Hardware: nRF52805
Thanks for your help!