Files
micropython/tests/multi_bluetooth/ble_irq_calls.py.exp
Damien George 02df2b09d4 extmod/btstack: Reset pending_value_handle before calling read-done cb.
Similar to the previous commit but for MP_BLUETOOTH_IRQ_GATTC_READ_DONE:
the pending_value_handle needs to be reset before calling
mp_bluetooth_gattc_on_read_write_status(), which will call the Python IRQ
handler, which may in turn call back into BTstack to perform an action like
a write.  In that case the pending_value_handle will need to be available
for the write/read/etc to proceed.

Fixes issue #13634.

Signed-off-by: Damien George <damien@micropython.org>
2024-02-16 10:50:43 +11:00

36 lines
878 B
Plaintext

--- instance0 ---
peripheral start
_IRQ_CENTRAL_CONNECT
_IRQ_MTU_EXCHANGED
_IRQ_GATTS_READ_REQUEST
_IRQ_GATTS_READ_REQUEST
_IRQ_CENTRAL_DISCONNECT
--- instance1 ---
central start
_IRQ_PERIPHERAL_CONNECT
_IRQ_GATTC_SERVICE_RESULT
service found: 3 UUID('a5a5a5a5-ffff-9999-1111-5a5a5a5a5a5a')
_IRQ_GATTC_SERVICE_DONE
service handle range: 3
_IRQ_GATTC_CHARACTERISTIC_RESULT
characteristic found: UUID('a5a5a5a5-eeee-9999-1111-5a5a5a5a5a5a')
_IRQ_GATTC_CHARACTERISTIC_DONE
_IRQ_GATTC_DESCRIPTOR_RESULT
_IRQ_GATTC_DESCRIPTOR_RESULT
_IRQ_GATTC_DESCRIPTOR_RESULT
CCCD found: UUID(0x2902)
_IRQ_GATTC_DESCRIPTOR_DONE
_IRQ_MTU_EXCHANGED
CCCD write
_IRQ_GATTC_WRITE_DONE
CCCD write result: 0
issue gattc_read
_IRQ_GATTC_READ_RESULT
gattc_read result: b''
_IRQ_GATTC_READ_DONE
_IRQ_GATTC_READ_RESULT
gattc_read result: b''
_IRQ_GATTC_READ_DONE
_IRQ_PERIPHERAL_DISCONNECT
connection closed