summaryrefslogtreecommitdiff
path: root/devices
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2020-07-28 18:18:41 -0400
committerDan Halbert <halbert@halwitz.org>2020-07-28 18:18:41 -0400
commite6bd99a5ee1e2ada3ad99e1de429c13e1b9d47cf (patch)
tree9594a39aa45e6122387529f5f186fedaaedd651a /devices
parent0619966c19bb9aeba7ec4fc19562878ca77e15ab (diff)
wip
Diffstat (limited to 'devices')
-rw-r--r--devices/ble_hci/common-hal/_bleio/Adapter.h2
-rw-r--r--devices/ble_hci/common-hal/_bleio/Attribute.c4
-rw-r--r--devices/ble_hci/common-hal/_bleio/Service.c1
3 files changed, 4 insertions, 3 deletions
diff --git a/devices/ble_hci/common-hal/_bleio/Adapter.h b/devices/ble_hci/common-hal/_bleio/Adapter.h
index d2f38b757..9ff122d26 100644
--- a/devices/ble_hci/common-hal/_bleio/Adapter.h
+++ b/devices/ble_hci/common-hal/_bleio/Adapter.h
@@ -43,8 +43,6 @@
extern bleio_connection_internal_t bleio_connections[BLEIO_TOTAL_CONNECTION_COUNT];
-
-
typedef struct _bleio_adapter_obj_t {
mp_obj_base_t base;
bleio_scanresults_obj_t *scan_results;
diff --git a/devices/ble_hci/common-hal/_bleio/Attribute.c b/devices/ble_hci/common-hal/_bleio/Attribute.c
index 30a0ebcf0..d9041da71 100644
--- a/devices/ble_hci/common-hal/_bleio/Attribute.c
+++ b/devices/ble_hci/common-hal/_bleio/Attribute.c
@@ -26,6 +26,10 @@
#include "shared-bindings/_bleio/Attribute.h"
+// Return the type of the attribute
+bleio_attribute_type_uuid(mp_obj_t *attribute) {
+ if mp_is_o
+
// Convert a _bleio security mode to a ble_gap_conn_sec_mode_t setting.
// void bleio_attribute_gatts_set_security_mode(ble_gap_conn_sec_mode_t *perm, bleio_attribute_security_mode_t security_mode) {
// switch (security_mode) {
diff --git a/devices/ble_hci/common-hal/_bleio/Service.c b/devices/ble_hci/common-hal/_bleio/Service.c
index 938f68711..ef2de6ee7 100644
--- a/devices/ble_hci/common-hal/_bleio/Service.c
+++ b/devices/ble_hci/common-hal/_bleio/Service.c
@@ -42,7 +42,6 @@ uint32_t _common_hal_bleio_service_construct(bleio_service_obj_t *self, bleio_uu
vm_used_ble = true;
- uint32_t status;
self->handle = bleio_adapter_add_attribute(
common_hal_bleio_adapter_obj,
is_secondary ? BLE_TYPE_SECONDARY_SERVICE : BLE_TYPE_PRIMARY_SERVICE,