![](/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/set.h
- Revision:
- 26:fd06c8b57d16
- Parent:
- 23:677689000369
- Child:
- 27:32267cee7cb8
--- a/bricks/set.h Fri Jan 06 21:36:47 2017 +0000 +++ b/bricks/set.h Sat Jan 07 15:38:15 2017 +0000 @@ -21,9 +21,9 @@ #include "bricks/types.h" #include "bricks/characteristic.h" - inline void set(Blob &blue, Characteristic<Digital> &chr, const Digital &data) + inline void set(Blob &blue, Characteristic<Bool> &chr, const Bool &data) { - uint16_t size = sizeof(Digital)/sizeof(uint8_t); + uint16_t size = sizeof(Bool)/sizeof(uint8_t); blue.gatt().write(chr.getValueHandle(), (uint8_t*)&data,size); }