micropython/ports/nrf/drivers/bluetooth
Stuart Langridge 30c7f1790b nrf/drivers/bluetooth: Handle PHY_UPDATE messages, used in Bluetooth 5.
Some devices, such as the LightBlue BTLE app on iOS, try to use Bluetooth 5
when connecting to a device.  This means that they will send a
BLE_GAP_EVT_PHY_UPDATE_REQUEST message to shift to a new physical layer.
If this event isn't handled, LightBlue (and likely other Bluetooth 5.0
central devices) will try to connect and then fail, staying in
"Connecting..." state forever.  This message should be replied to with
sd_ble_gap_phy_update, as documented in
drivers/bluetooth/s140_nrf52_6.1.1/s140_nrf52_6.1.1_API/include/ble_gap.h.

This commit handles the event.  LightBlue can now successfully connect to a
BTLE device on a P10059 nRF52840 dongle running MicroPython.  Two other
related events have logging added in case they are needed in the future.
2022-07-16 23:46:30 +10:00
..
ble_drv.c nrf/drivers/bluetooth: Handle PHY_UPDATE messages, used in Bluetooth 5. 2022-07-16 23:46:30 +10:00
ble_drv.h nrf/bluetooth: Add support for s132/s140 v6, remove s132 v2/3/5 2018-07-18 17:12:26 +10:00
ble_uart.c all: Update to point to files in new shared/ directory. 2021-07-12 17:08:10 +10:00
ble_uart.h nrf: Add new port to Nordic nRF5x MCUs. 2018-07-18 17:12:25 +10:00
bluetooth_common.mk nrf/bluetooth: Add support for s132/s140 v6, remove s132 v2/3/5 2018-07-18 17:12:26 +10:00
download_ble_stack.sh nrf/bluetooth: Deprecate use of SoftDevice s140 v6.0.0. 2019-03-15 20:50:15 +01:00
ringbuffer.h nrf: Add new port to Nordic nRF5x MCUs. 2018-07-18 17:12:25 +10:00