summaryrefslogtreecommitdiff
path: root/shared-module
diff options
context:
space:
mode:
Diffstat (limited to 'shared-module')
-rw-r--r--shared-module/bleio/Service.h2
-rw-r--r--shared-module/bleio/__init__.h6
2 files changed, 7 insertions, 1 deletions
diff --git a/shared-module/bleio/Service.h b/shared-module/bleio/Service.h
index 7fee57f1d..828d4cdc8 100644
--- a/shared-module/bleio/Service.h
+++ b/shared-module/bleio/Service.h
@@ -34,7 +34,7 @@ typedef struct {
uint16_t handle;
bool is_secondary;
bleio_uuid_obj_t *uuid;
- // May be a PeripheralServer, CentralClient, etc.
+ // May be a Peripheral, Central, etc.
mp_obj_t *device;
mp_obj_t char_list;
uint16_t start_handle;
diff --git a/shared-module/bleio/__init__.h b/shared-module/bleio/__init__.h
index f8f0e0660..07d148594 100644
--- a/shared-module/bleio/__init__.h
+++ b/shared-module/bleio/__init__.h
@@ -27,6 +27,12 @@
#ifndef MICROPY_INCLUDED_SHARED_MODULE_BLEIO_INIT_H
#define MICROPY_INCLUDED_SHARED_MODULE_BLEIO_INIT_H
+typedef enum {
+ GATT_ROLE_NONE,
+ GATT_ROLE_SERVER,
+ GATT_ROLE_CLIENT,
+} gatt_role_t;
+
extern void bleio_reset(void);
#endif // MICROPY_INCLUDED_SHARED_MODULE_BLEIO_INIT_H