![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
A cute tiny piece of code implementing an IoT NAND device, demonstrating how to setup and advertise a cute GATT (NAND) service. The code has been tested on a Nordic nRF51822-DK.
Dependencies: BLE_API mbed nRF51822
Fork of BLE_HeartRate_IDB0XA1 by
bricks/callback.h
- Committer:
- hux
- Date:
- 2017-01-08
- Revision:
- 23:2e73c391bb12
File content as of revision 23:2e73c391bb12:
// callback.h - deal with callbacks // // #ifndef _CALLBACK_H_ #define _CALLBACK_H_ #include "bricks/o.h" void onConnect (O&o, void(*fptr)(O&o)); // setup connection callback void onDisconnect(O&o, void(*fptr)(O&o)); // setup disconnect callback void onWritten (O&o, void (*fptr)(O&)); // setup data written callback #endif // _CALLBACK_H_