Skip to content

Commit a6aa739

Browse files
committed
extmod/btstack: Include value handle in client read/write events.
This replaces the previous pending operation queue (that used to also be shared with pending server notify/indicate ops) with a single pending operation per connection. This allows the value handle to be correctly passed to the Python-level events. Also re-structure GATT client event handling to simplify the packet handler functions. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
1 parent 256f47e commit a6aa739

File tree

6 files changed

+224
-206
lines changed

6 files changed

+224
-206
lines changed

docs/library/bluetooth.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,10 @@ Event Handling
183183
conn_handle, value_handle, char_data = data
184184
elif event == _IRQ_GATTC_READ_DONE:
185185
# A gattc_read() has completed.
186-
# Note: The value_handle will be zero on btstack (but present on NimBLE).
187186
# Note: Status will be zero on success, implementation-specific value otherwise.
188187
conn_handle, value_handle, status = data
189188
elif event == _IRQ_GATTC_WRITE_DONE:
190189
# A gattc_write() has completed.
191-
# Note: The value_handle will be zero on btstack (but present on NimBLE).
192190
# Note: Status will be zero on success, implementation-specific value otherwise.
193191
conn_handle, value_handle, status = data
194192
elif event == _IRQ_GATTC_NOTIFY:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy