Techcon 2014 BLE sample Police HRM (earbud-based) for Nordic

Dependencies:   BLE_API GroveEarbudSensor mbed nRF51822 BufferedSerial

Revision:
4:093502479b1d
Parent:
1:34a767241de5
diff -r 906ca3322e53 -r 093502479b1d main.cpp
--- a/main.cpp	Fri Sep 26 03:44:23 2014 +0000
+++ b/main.cpp	Fri Feb 13 04:06:49 2015 +0000
@@ -21,7 +21,7 @@
 // ********************* BEGIN Tunables for TechCon 2014
 
 // !!!!IMPORTANT!!!!  CHANGE DEVICE_NAME so that you can find *YOUR* Nordic board in the workshop on your phone!!
-const static char     DEVICE_NAME[]     = "Policeman #1234";                 // what we want to appear as in mBED device server
+const static char     DEVICE_NAME[]     = "Policeman #DOUG";                 // what we want to appear as in mBED device server
 
 #define HRM_INCREMENT                     10                                 // increment of HRM per button press (+/-)
 #define HRM_DEFAULT_INIT                  70                                 // default HRM (button only... earbud defaults to offline status)
@@ -83,7 +83,7 @@
 }
 
 // Connection callback
-void connectionCallback(Gap::Handle_t handle, const Gap::ConnectionParams_t *parms) {
+void connectionCallback(Gap::Handle_t handle, Gap::addr_type_t peerAddrType, const Gap::address_t peerAddr, const Gap::ConnectionParams_t *params) {
     LOG_CONSOLE("Endpoint is connected!\r\n");
     connected = true;
 }