diff options
author | Jim Mussared <jim.mussared@gmail.com> | 2020-06-02 14:22:47 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2020-06-05 14:08:15 +1000 |
commit | c07ea3e4c2cfd9fe75a8b207a39d8bb0295fcc3b (patch) | |
tree | 0732d6941d18a4ecd9a1d36c9c7419234883ac17 /extmod/modbluetooth.h | |
parent | 919d640aec637004110d9f4df9814523a3bfd847 (diff) |
extmod/modbluetooth: Implement read done event.
On btstack there's no status associated with the read result, it comes
through as a separate event. This allows you to detect read failures or
timeouts.
Diffstat (limited to 'extmod/modbluetooth.h')
-rw-r--r-- | extmod/modbluetooth.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extmod/modbluetooth.h b/extmod/modbluetooth.h index 5d02d96e3..c8b8dc63f 100644 --- a/extmod/modbluetooth.h +++ b/extmod/modbluetooth.h @@ -276,8 +276,8 @@ size_t mp_bluetooth_gattc_on_data_available_start(uint8_t event, uint16_t conn_h void mp_bluetooth_gattc_on_data_available_chunk(const uint8_t *data, size_t data_len); void mp_bluetooth_gattc_on_data_available_end(mp_uint_t atomic_state); -// Notify modbluetooth that a write has completed. -void mp_bluetooth_gattc_on_write_status(uint16_t conn_handle, uint16_t value_handle, uint16_t status); +// Notify modbluetooth that a read or write operation has completed. +void mp_bluetooth_gattc_on_read_write_status(uint8_t event, uint16_t conn_handle, uint16_t value_handle, uint16_t status); #endif // For stacks that don't manage attribute value data (currently all of them), helpers |