This commit is contained in:
Dan Halbert 2020-07-28 18:18:41 -04:00
parent 0619966c19
commit e6bd99a5ee
3 changed files with 4 additions and 3 deletions

View File

@ -43,8 +43,6 @@
extern bleio_connection_internal_t bleio_connections[BLEIO_TOTAL_CONNECTION_COUNT]; extern bleio_connection_internal_t bleio_connections[BLEIO_TOTAL_CONNECTION_COUNT];
typedef struct _bleio_adapter_obj_t { typedef struct _bleio_adapter_obj_t {
mp_obj_base_t base; mp_obj_base_t base;
bleio_scanresults_obj_t *scan_results; bleio_scanresults_obj_t *scan_results;

View File

@ -26,6 +26,10 @@
#include "shared-bindings/_bleio/Attribute.h" #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. // 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) { // void bleio_attribute_gatts_set_security_mode(ble_gap_conn_sec_mode_t *perm, bleio_attribute_security_mode_t security_mode) {
// switch (security_mode) { // switch (security_mode) {

View File

@ -42,7 +42,6 @@ uint32_t _common_hal_bleio_service_construct(bleio_service_obj_t *self, bleio_uu
vm_used_ble = true; vm_used_ble = true;
uint32_t status;
self->handle = bleio_adapter_add_attribute( self->handle = bleio_adapter_add_attribute(
common_hal_bleio_adapter_obj, common_hal_bleio_adapter_obj,
is_secondary ? BLE_TYPE_SECONDARY_SERVICE : BLE_TYPE_PRIMARY_SERVICE, is_secondary ? BLE_TYPE_SECONDARY_SERVICE : BLE_TYPE_PRIMARY_SERVICE,