taks / esp32-nimble

A wrapper for the ESP32 NimBLE Bluetooth stack.
Apache License 2.0
91 stars 30 forks source link

Add hint for potential increase of CONFIG_BT_NIMBLE_HOST_TASK_STACK_SIZE #130

Closed juliankrieger closed 4 days ago

juliankrieger commented 1 week ago

In my recent work, I've come up with in issue that resulted in a stack overflow in nimble_host, when calculating expensive data inside an on_read callback. I could resolve my issue with the configuration option above.

juliankrieger commented 1 week ago

Another idea would be to run a smaller tokio/mio thread and signal it to do the expensive calculation.

taks commented 1 week ago

@juliankrieger Thanks for creating this issue, could you create a pull request?

juliankrieger commented 4 days ago

Sure!