From 372e5a280e666f988757a8945c66693a19c40d32 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 20 Feb 2020 14:43:52 +1100 Subject: extmod/btstack: Implement gatts_db for btstack. Work done in collaboration with Jim Mussared aka @jimmo. --- extmod/btstack/modbluetooth_btstack.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'extmod/btstack/modbluetooth_btstack.h') diff --git a/extmod/btstack/modbluetooth_btstack.h b/extmod/btstack/modbluetooth_btstack.h index 9e8c6ad3fb..50e690fd4c 100644 --- a/extmod/btstack/modbluetooth_btstack.h +++ b/extmod/btstack/modbluetooth_btstack.h @@ -27,11 +27,16 @@ #ifndef MICROPY_INCLUDED_EXTMOD_BTSTACK_MODBLUETOOTH_BTSTACK_H #define MICROPY_INCLUDED_EXTMOD_BTSTACK_MODBLUETOOTH_BTSTACK_H +#include "extmod/modbluetooth.h" + typedef struct _mp_bluetooth_btstack_root_pointers_t { // This stores both the advertising data and the scan response data, concatenated together. uint8_t *adv_data; // Total length of both. size_t adv_data_alloc; + + // Characteristic (and descriptor) value storage. + mp_gatts_db_t gatts_db; } mp_bluetooth_btstack_root_pointers_t; enum { -- cgit v1.2.3