Dissertation project, looking at BLE communication in cars. This project is BLE peripheral acting as car indicator stalk

Dependencies:   BLE_API mbed nRF51822

Fork of BLE_GATT_test1 by Alexander Lea

Revision:
20:288064697dd3
Parent:
18:867625bb5000
Child:
21:84574bea5494
--- a/main.cpp	Sat Apr 25 12:52:33 2015 +0000
+++ b/main.cpp	Sat Apr 25 12:56:07 2015 +0000
@@ -1,7 +1,6 @@
 #include "mbed.h"
 #include "BLEDevice.h"
 #include "BroadcasterService.h"
-#include "ErrorService.h"
 #include <string>
 
 using namespace std;
@@ -62,14 +61,14 @@
 /** Callback function for BLE connection */
 void connectionCallback(Gap::Handle_t handle, Gap::addr_type_t peerAddrType, const Gap::address_t peerAddr, const Gap::ConnectionParams_t *parms)
 {
-    pc.printf("Connected! - stop advertising. Handle:%d, eType:%d, Addr:%u.\r\n", handle, peerAddrType, peerAddr);
+    pc.printf("Connected! - stop advertising. Handle:%d, eType:%d, Addr:%u\r\n", handle, peerAddrType, peerAddr);
     ble.stopAdvertising();
 }
 
 /** Callback function for error ticker*/
 void raiseGenericError()
 {
-    pc.printf("Error raised - %d", BroadcasterService::ERROR_GENERIC);
+    pc.printf("Error raised - %d\r\n", BroadcasterService::ERROR_GENERIC);
     broadcasterService->registerError(BroadcasterService::ERROR_GENERIC);
 }