Closed thekurtovic closed 3 days ago
I saw this as well, they seem to be doing a lot of things lately that are not supported in other stacks or mynewt/nimble,like the connection re-attempt etc.. Not sure how well this one will work, I'd have to test it.
I see. Can't find any other references to MYNEWT_VAL_BLE_HOST_ALLOW_CONNECT_WITH_SCAN
now that you mention it.
That is unfortunate, I was really looking forward to implementing this for my application.
Let me know if you do 👍
There is a relatively new option called
CONFIG_BT_NIMBLE_HOST_ALLOW_CONNECT_WITH_SCAN
. I was curious to test it out but so far it's not working as I would expect. It appears to be backported to 5.3.1. https://github.com/espressif/esp-idf/commit/92e4100df197e8991dcff99223034f571055bd9c https://github.com/espressif/esp-nimble/commit/50c2641a04e356fdac9c53fae56f5004f26605e0It works partially, as calling
NimBLEClient::connect
does not implicitly stop the scan like it would previously. However once the esp32-s3 connects to the peripheral it will not receive any new advertisements, even though the scan seemingly never ended. I tried to disable scan duplicate filtering just in case that was conflicting, but it made no difference. The peripheral starts advertising every 15 seconds, but it won't show up until the scan duration is reached and restarted. Also some issues with stopping/starting the scan early, seems like I have to wait until the scan reaches the specified duration before it can be restarted.Should this work out of the box once the option is enabled? I have a feeling I should report this upstream but wanted to double check here.