circuitpython/tests/multi_bluetooth
Jim Mussared e152d0c197 extmod/btstack: Schedule notify/indicate/write ops for bg completion.
The goal of this commit is to allow using ble.gatts_notify() at any time,
even if the stack is not ready to send the notification right now.  It also
addresses the same issue for ble.gatts_indicate() and ble.gattc_write()
(without response).  In addition this commit fixes the case where the
buffer passed to write-with-response wasn't copied, meaning it could be
modified by the caller, affecting the in-progress write.

The changes are:

- gatts_notify/indicate will now run in the background if the ACL buffer is
  currently full, meaning that notify/indicate can be called at any time.

- gattc_write(mode=0) (no response) will now allow for one outstanding
  write.

- gattc_write(mode=1) (with response) will now copy the buffer so that it
  can't be modified by the caller while the write is in progress.

All four paths also now track the buffer while the operation is in
progress, which prevents the GC free'ing the buffer while it's still
needed.
2020-07-18 14:23:47 +10:00
..
ble_characteristic.py extmod/btstack: Schedule notify/indicate/write ops for bg completion. 2020-07-18 14:23:47 +10:00
ble_characteristic.py.exp extmod/btstack: Schedule notify/indicate/write ops for bg completion. 2020-07-18 14:23:47 +10:00
ble_gap_advertise.py tests/multi_bluetooth: Update to work with new BLE events. 2020-06-05 14:08:47 +10:00
ble_gap_advertise.py.exp extmod/modbluetooth: Change scan result's "connectable" to "adv_type". 2020-03-11 14:00:44 +11:00
ble_gap_connect.py tests/multi_bluetooth: Update to work with new BLE events. 2020-06-05 14:08:47 +10:00
ble_gap_connect.py.exp tests/multi_bluetooth: Add initial tests for bluetooth BLE. 2020-03-10 02:22:34 +11:00
ble_gap_device_name.py tests/multi_bluetooth: Update to work with new BLE events. 2020-06-05 14:08:47 +10:00
ble_gap_device_name.py.exp extmod/modbluetooth: Add support for changing the GAP device name. 2020-05-11 21:30:41 +10:00
ble_gatt_data_transfer.py tests/multi_bluetooth: Update to work with new BLE events. 2020-06-05 14:08:47 +10:00
ble_gatt_data_transfer.py.exp tests/multi_bluetooth: Update to work with new BLE events. 2020-06-05 14:08:47 +10:00
ble_gattc_discover_services.py tests/multi_bluetooth: Update to work with new BLE events. 2020-06-05 14:08:47 +10:00
ble_gattc_discover_services.py.exp tests/multi_bluetooth: Add initial tests for bluetooth BLE. 2020-03-10 02:22:34 +11:00