Closed ChocolateLoverRaj closed 8 months ago
Operation failed due to resource exhaustion.
You likely need to increase maximum number of concurrent connections. The connection count before the crash is 3, try increasing it to 9 using "menuconfig" or by updating the sdkconfig directly.
Also try increasing the stack size to 7000.
@oleander thanks for the tip.
I found this option, and I changed the sdkconfig.defaults
file and added this:
CONFIG_BT_CONTROLLER_ENABLED=y
CONFIG_BTDM_CTRL_BLE_MAX_CONN=9
CONFIG_BT_NIMBLE_MAX_CONNECTIONS=9
and now I'm able to connect 4 devices (I didn't test with more than that) without the microcontroller crashing. Should I make a PR adding these options?
Steps to reproduce:
.cargo/config.toml
to be for ESP32-C3espflash --monitor
toespflash flash --monitor
cargo run --example ble_server
Error:
Full log (the first part was not included because I reached the terminal max history):