A nice BLE demo program which allows remote switch of an LED via GATT interface.
Dependencies: BLE_API mbed nRF51822
Fork of BLE_Button by
bricks/characteristic.cpp@13:0563f1aa6a75, 2017-10-21 (annotated)
- Committer:
- hux
- Date:
- Sat Oct 21 19:56:15 2017 +0000
- Revision:
- 13:0563f1aa6a75
- Parent:
- 12:0d0ca44397dd
Switch LED via BLE GATT
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hux | 12:0d0ca44397dd | 1 | // characteristic.cpp - an easy to use overloaded characteristic class |
hux | 12:0d0ca44397dd | 2 | |
hux | 12:0d0ca44397dd | 3 | #include "bricks/characteristic.h" |
hux | 12:0d0ca44397dd | 4 | |
hux | 12:0d0ca44397dd | 5 | IniBuffer characteristicInidata; // to initialize a characteristic |
hux | 12:0d0ca44397dd | 6 | |
hux | 12:0d0ca44397dd | 7 | // eof |