GAP based TOF Demo
Dependencies: BLE_API X_NUCLEO_6180XA1 mbed
Fork of BLE_HeartRate_IDB0XA1 by
Diff: bricks/service.h
- Revision:
- 27:32267cee7cb8
- Parent:
- 26:fd06c8b57d16
diff -r fd06c8b57d16 -r 32267cee7cb8 bricks/service.h --- a/bricks/service.h Sat Jan 07 15:38:15 2017 +0000 +++ b/bricks/service.h Sat Jan 14 08:43:14 2017 +0000 @@ -55,6 +55,13 @@ #include "bricks/blob.h" #include "bricks/collection.h" + // the following #define is helpful if a service is defined on base of the + // BLE API (the tedios way) + +#define GattListLength(list) (sizeof(list)/sizeof(GattCharacteristic*)) + + // Service classs definition + class Service { public: // public properties