![](/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/advertise.h
- Revision:
- 28:def5e0f0fb06
- Parent:
- 27:32267cee7cb8
diff -r 32267cee7cb8 -r def5e0f0fb06 bricks/advertise.h --- a/bricks/advertise.h Sat Jan 14 08:43:14 2017 +0000 +++ b/bricks/advertise.h Wed Feb 01 22:08:56 2017 +0000 @@ -111,4 +111,9 @@ advertise(o,ms); // start advertising } + inline bool isConnected(O&o) + { + return o.getGapState().connected; + } + #endif // _ADVERTISE_H_ \ No newline at end of file