![](/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/get.h
- Revision:
- 28:def5e0f0fb06
- Parent:
- 27:32267cee7cb8
--- a/bricks/get.h Sat Jan 14 08:43:14 2017 +0000 +++ b/bricks/get.h Wed Feb 01 22:08:56 2017 +0000 @@ -27,6 +27,12 @@ o.gattServer().read(chr.getValueHandle(), (uint8_t*)&data,&size); } + inline void get(O&o, Characteristic<Int> &chr, Int &data) + { + uint16_t size = sizeof(Int)/sizeof(uint8_t); + o.gattServer().read(chr.getValueHandle(), (uint8_t*)&data,&size); + } + inline void get(O&o, Characteristic<ObjectId> &chr, ObjectId &data) { uint16_t size = sizeof(ObjectId)/sizeof(uint8_t);