-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Low performance of NOTIFY or INDICATE #12
Comments
ok, so two issues here:
(1) is easy, (2) is more challenging. what kind of performance are you looking for? would just (1) be enough? |
Major bottleneck seems to be on the client when it calls This also causes problems on the server, because I think that in |
BTW nRF Connect app has no problems reading the data without observed data loss from the ESP32 client (used recording functionality). |
Regarding slow |
But it also causes memory exhaustion by big |
I am now playing with bare ESP-IDF |
...also no problem with 300 notif per second. |
Did you make further progress with this, did you end up simply using ESP-IDF? |
I am using my hacks directly accessing ESP-IDF API. Also the project is now hibernating (you know, start-ups...). |
We are sending cca 120 notifications per second. When we subscribe to indications with nRF Connect Android App then ESP32 (as GATTS) device quickly runs out of heap memory because elements from
pending_inds
inesp32_bt_gatts.c
are removed much less ofthen than they are added.With notifications only (no indications) it is better but still it fills up. What is interesting that if we subscribe to that notifications with another ESP32 (as GATTC) then the performance of GATTS is even worse.
This can be reproduced by creating project which uses https://github.com/mongoose-os-libs/bt-service-debug, logging 200 messages per second and turnign of indications on the client.
Is there anything we can check?
The text was updated successfully, but these errors were encountered: