A blue button is always a nice toy ...
Dependencies: BLE_API X_NUCLEO_IDB0XA1 mbed
Fork of BLE_HeartRate_IDB0XA1 by
Diff: main.cpp
- Revision:
- 26:fd06c8b57d16
- Parent:
- 25:231d3f382583
- Child:
- 27:32267cee7cb8
--- a/main.cpp Fri Jan 06 21:36:47 2017 +0000 +++ b/main.cpp Sat Jan 07 15:38:15 2017 +0000 @@ -1,6 +1,6 @@ // T07N_Easy_GATT - Easy GATT setup using bricks -#include "bricks.h" +#include "bricks/bricks.h" #include "easy.h" //============================================================================== @@ -31,9 +31,9 @@ o.onConnect(onConnect); // setup connection callback o.onDisconnect(onDisconnect); // setup disconnection callback - device(o,"nRF51-DK"); // setup device name + device(o,"Easy"); // setup device name data(o,"ABCDEF"); // setup advertising data - name(o,"T07N#1.1 Easy GATT"); // setup advertising name + name(o,"T07N#2.4 Easy GATT"); // setup advertising name peripheral(o,"C:ng",100); // start advertising @ 100 msec interval blink(ADVERTISE); // show that board is advertising