extmod/btstack: Implement gatts_db for btstack.

Work done in collaboration with Jim Mussared aka @jimmo.
This commit is contained in:
Damien George
2020-02-20 14:43:52 +11:00
parent 86c26db3ff
commit 372e5a280e
2 changed files with 122 additions and 31 deletions

View File

@@ -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 {