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

Files at this revision

API Documentation at this revision

Comitter:
alexanderlea
Date:
Sat Apr 25 12:58:29 2015 +0000
Parent:
20:288064697dd3
Commit message:
fixed log issue

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sat Apr 25 12:56:07 2015 +0000
+++ b/main.cpp	Sat Apr 25 12:58:29 2015 +0000
@@ -12,7 +12,7 @@
 Serial pc(USBTX, USBRX);
 
 /*Variable Declarations*/
-const static char       DEVICE_NAME[]       = "BLE_Broadcaster";
+const static char       DEVICE_NAME[]       = "BLE_CarPeripheral";
 uint8_t                 cmdIndicatorOn[8]   = { 0x69,0x6e,0x64,0x69,0xff,0xff,0xff,0xff }; // = I   N   D   I   255 255 255 255
 uint8_t                 cmdIndicatorOff[8]  = { 0x69,0x6e,0x64,0x69,0x00,0x00,0x00,0x00 }; // = I   N   D   I   0   0   0   0 
 uint8_t                 cmdBrakeOn[8]   = { 0x42, 0x52, 0x41, 0x4b, 0xff,0xff,0xff,0xff }; // = B   R   A   K   255 255 255 255
@@ -68,7 +68,7 @@
 /** Callback function for error ticker*/
 void raiseGenericError()
 {
-    pc.printf("Error raised - %d\r\n", BroadcasterService::ERROR_GENERIC);
+    pc.printf("Error raised - %u\r\n", BroadcasterService::ERROR_GENERIC);
     broadcasterService->registerError(BroadcasterService::ERROR_GENERIC);
 }