summaryrefslogtreecommitdiff
path: root/shared-module/bleio/Address.h
diff options
context:
space:
mode:
authorScott Shawcroft <scott@adafruit.com>2019-07-18 10:08:58 -0700
committerGitHub <noreply@github.com>2019-07-18 10:08:58 -0700
commit74be29cbf923fc2a40c103ab722e996045b72827 (patch)
tree30e6f405cd6da1fc0067ca304c2b0ebd4460e9fe /shared-module/bleio/Address.h
parentd12e1a8d74ebb8d5d32ab0de47d3097e80c5d4fd (diff)
parent1c31cf5f6a6d9cff6f086114f6e0a03b5247c623 (diff)
Merge pull request #1993 from dhalbert/ble-scanner5.0.0-alpha.0
bleio: add central and scanner functionality, cleanup bleio API, some code restructure
Diffstat (limited to 'shared-module/bleio/Address.h')
-rw-r--r--shared-module/bleio/Address.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/shared-module/bleio/Address.h b/shared-module/bleio/Address.h
index f0998c163..39789842f 100644
--- a/shared-module/bleio/Address.h
+++ b/shared-module/bleio/Address.h
@@ -3,6 +3,7 @@
*
* The MIT License (MIT)
*
+ * Copyright (c) 2019 Dan Halbert for Adafruit Industries
* Copyright (c) 2018 Artur Pacholec
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -27,14 +28,14 @@
#ifndef MICROPY_INCLUDED_SHARED_MODULE_BLEIO_ADDRESS_H
#define MICROPY_INCLUDED_SHARED_MODULE_BLEIO_ADDRESS_H
-#include "shared-bindings/bleio/AddressType.h"
+#include "py/obj.h"
-#define BLEIO_ADDRESS_BYTES 6
+#define NUM_BLEIO_ADDRESS_BYTES 6
typedef struct {
mp_obj_base_t base;
- bleio_address_type_t type;
- uint8_t value[BLEIO_ADDRESS_BYTES];
+ uint8_t type;
+ mp_obj_t bytes; // a bytes() object
} bleio_address_obj_t;
#endif // MICROPY_INCLUDED_SHARED_MODULE_BLEIO_ADDRESS_H