I am trying to send data from my android application to a microchip RN4871 Bluetooth Low Energy module.
I want to use the transparent UART mode.
After connecting with the module, I can send packets of 20 bytes with:
characteristic.setValue("data");
mBluetoothGatt.writeCharacteristic(characteristic);
But after 8 packets of 20 bytes (so 160 bytes), the BLE module does not print the new packages.
Even after a disconnect and reconnect from my device to my module, I can't send more than 8 packets of 20 bytes, I have to restart my BLE module to send it 8 packets again.
I have tried the solution proposed here: Android: Sending data >20 bytes by BLE without any success.
Do you know if there is anything I must do to send another serie of 8 packets of 20 bytes?