summaryrefslogtreecommitdiff
path: root/shared-module
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2018-12-30 22:31:51 -0500
committerDan Halbert <halbert@halwitz.org>2018-12-30 22:33:49 -0500
commit1dc3957e729a7bf4d6476c587f140e3d42fd1bd5 (patch)
tree857c9a490c17f53884c791726570ffb36df52558 /shared-module
parentef39e72c7c3c3e68f73f670b7f8b7f08e813be39 (diff)
LocalPeripheral is now Peripheral; more work on basic GATTS support; UART not working yet
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