diff options
author | Jim Mussared <jim.mussared@gmail.com> | 2023-03-10 00:56:31 +1100 |
---|---|---|
committer | Jim Mussared <jim.mussared@gmail.com> | 2023-04-26 11:37:20 +1000 |
commit | bb4ee06d98f89301be0cea62362070cd76ab4c1c (patch) | |
tree | cacd98207bd03730912fd980177dae2947925473 /extmod/modbluetooth.h | |
parent | f9b60a240a8b10a823923a95bff10453761c6f82 (diff) |
extmod/btstack: Add support for CCCD to allow client subscriptions.
This allows gatts_write(..., send_update=True) to work, which will send
notifications/indications to subscribed clients.
btstack already created the CCCD but writes to it were ignored.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'extmod/modbluetooth.h')
-rw-r--r-- | extmod/modbluetooth.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/modbluetooth.h b/extmod/modbluetooth.h index 6fe8d66ed..630a27052 100644 --- a/extmod/modbluetooth.h +++ b/extmod/modbluetooth.h @@ -84,7 +84,7 @@ #define MP_BLUETOOTH_DEFAULT_ATTR_LEN (20) #endif -#define MP_BLUETOOTH_CCCB_LEN (2) +#define MP_BLUETOOTH_CCCD_LEN (2) // Advertisement packet lengths #define MP_BLUETOOTH_GAP_ADV_MAX_LEN (32) |