summaryrefslogtreecommitdiff
path: root/extmod/modbluetooth.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2020-02-20 14:43:28 +1100
committerDamien George <damien.p.george@gmail.com>2020-03-10 01:53:42 +1100
commit86c26db3ff40b87a8d058a67ac5c71f71a3818b6 (patch)
tree844642b803dd201c11a1c2ca4c3c22e59c9b7e4c /extmod/modbluetooth.h
parent0674917bc53d0a7346715d2af508a074ebf26c24 (diff)
extmod/btstack: Implement service registration.
Work done in collaboration with Jim Mussared aka @jimmo.
Diffstat (limited to 'extmod/modbluetooth.h')
-rw-r--r--extmod/modbluetooth.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/extmod/modbluetooth.h b/extmod/modbluetooth.h
index 661130802..ed280e389 100644
--- a/extmod/modbluetooth.h
+++ b/extmod/modbluetooth.h
@@ -63,6 +63,7 @@
// Advertisement packet lengths
#define MP_BLUETOOTH_GAP_ADV_MAX_LEN (32)
+// These match the spec values for these flags so can be passed directly to the stack.
#define MP_BLUETOOTH_CHARACTERISTIC_FLAG_READ (1 << 1)
#define MP_BLUETOOTH_CHARACTERISTIC_FLAG_WRITE (1 << 3)
#define MP_BLUETOOTH_CHARACTERISTIC_FLAG_NOTIFY (1 << 4)