Various Espressif BLE fixes #9374
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes:
Adapter.c
andConnection.c
, busy-wait for incoming events using status variables, instead of using FreeRTOS task notification. This fixes some breaking out-of-order notifications I saw during GATT discovery, and and also allows for background tasks to run and also allows for ctrl-C interruption.observer
when not present should have beenmp_const_none
, notNULL
. This fixed a hard crash when there was no observer.GATT_MAX_DATA_LENGTH
, not0
, for default size of remote characteristics. When zero, the initialPacketBuffer
ringbuf was set too small.HS_BLE_EBUSY
when starting a GAP scan.Tested with:
ble_ibbq_simpletest.py
- iBBQ NutriChef thermometerble_heart_rate_simpletest.py
- Schosche heart rate monitorble_uart_echo_test.py
andble_uart_echo_client.py
- tested both directions, talking to an nRF52840.@jedgarpark This should fix your iBBQ project issue.
@tyeth Does this solve #9304 for you?