summaryrefslogtreecommitdiffstatshomepage
path: root/extmod/btstack/modbluetooth_btstack.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2020-02-20 14:43:52 +1100
committerDamien George <damien.p.george@gmail.com>2020-03-10 01:53:42 +1100
commit372e5a280e666f988757a8945c66693a19c40d32 (patch)
treee3defd6dbf46f6ca0c03133cd4d32f74535e3bcf /extmod/btstack/modbluetooth_btstack.h
parent86c26db3ff40b87a8d058a67ac5c71f71a3818b6 (diff)
downloadmicropython-372e5a280e666f988757a8945c66693a19c40d32.tar.gz
micropython-372e5a280e666f988757a8945c66693a19c40d32.zip
extmod/btstack: Implement gatts_db for btstack.
Work done in collaboration with Jim Mussared aka @jimmo.
Diffstat (limited to 'extmod/btstack/modbluetooth_btstack.h')
-rw-r--r--extmod/btstack/modbluetooth_btstack.h5
1 files changed, 5 insertions, 0 deletions
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 {