I am experiencing an immediate BLE disconnect when trying to use DLE. I can write up to 20 bytes of data, but if I try to write more 21 bytes or more I get an immediate BLE disconnect. There are no other BLE events (no write request or indication of error).
I am using the Nordic nRF52840, SDK v15.3.0, SoftStack S140 V6.1.1. The BLE connection uses MITM protection.
I am able to successfully connect using a secure BLE connection with MITM protection, update the data length to 174 bytes and the MTU to 247 bytes. Writing up to 20 bytes is fine, but writing 21 bytes or more causes an immediate BLE disconnect.
With a normal BLE connection (no encryption) I can successfully write up to 244 bytes.
Is there a restriction on the using DLE with a secure BLE connection?