![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Bluetooth Connected TOF Sensor
Dependencies: BLE_API X_NUCLEO_6180XA1 X_NUCLEO_IDB0XA1 mbed
Fork of BLE_HeartRate_IDB0XA1 by
Diff: bricks/service.h
- Revision:
- 27:32267cee7cb8
- Parent:
- 26:fd06c8b57d16
--- 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