taks / esp32-nimble

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

Add hint for potential increase of CONFIG_BT_NIMBLE_HOST_TASK_STACK_SIZE #130

Closed juliankrieger closed 4 months ago

juliankrieger commented 4 months 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 4 months ago

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

taks commented 4 months ago

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

juliankrieger commented 4 months ago

Sure!