Closed bonifacebassey closed 4 years ago
Hello, Thank you for your report. We have noticed this issue, and we have a solution for that. We are testing it, and it will release in several days. BTW, Notify is unacknowledged, it is unreliable since you will not know whether your remote client has received the data. If you want to ensure that no data is lost, you can consider using indicate.
@BonifaceBassey Thanks for reporting, sorry for the slow turnaround and appreciate your patience in waiting for the fix. The fix has been available at https://github.com/espressif/esp-idf/commit/3634192deda85981466897869ac550665a8cb3df, feel free to reopen if the issue still happens. Thanks.
Environment
Problem Description
I am using ESP-IDF throughput GATT SERVER and GATT CLIENT demos between two ESP32-DevKitC v2, with CONFIG_EXAMPLE_GATTS_NOTIFY_THROUGHPUT selected, i could realize the throughput of around 91kByte/s which is fine.
My concern is that, i wanted to know how many messages could be sent/received per second, and so, i added a counter that increments. The throughput GATT SERVER counted up to 25,321 packets/second sent while the throughput GATT CLIENT only received 187 packets/second
Expected Behavior
I wanted to see that all packets sent by the throughput GATT SERVER are received by the throughput GATT CLIENT
Actual Behavior
Extremely too many packets are being lost.
Question
As i can't afford to loose any packet sent, how can i send packets as fast as possible without loosing any of them?
Code to reproduce this issue
// Similarly at the throughput GATT CLIENT.
Log Output