Joan BLE Dimmer

Dependencies:   BLE_API mbed nRF51822

Fork of BLE_LED_Controller by UCL IoT

Revision:
14:8ff3bfb6b19d
Parent:
13:291a8f177400
Child:
15:016434184568
--- a/main.cpp	Wed Dec 17 22:43:40 2014 +0000
+++ b/main.cpp	Wed Dec 17 22:47:39 2014 +0000
@@ -19,7 +19,7 @@
 
 #include "UARTService.h"
 
-#define NEED_CONSOLE_OUTPUT 1 /* Set this if you need debug messages on the console;
+#define NEED_CONSOLE_OUTPUT 0 /* Set this if you need debug messages on the console;
                                * it will have an impact on code-size and power consumption. */
 
 #if NEED_CONSOLE_OUTPUT
@@ -53,7 +53,6 @@
     if ((uartServicePtr != NULL) && (params->charHandle == uartServicePtr->getTXCharacteristicHandle())) {     //If characters received over BLE
         uint16_t bytesRead = params->len;
         DEBUG("received %u bytes\n\r", bytesRead);
-        //strncpy(rxPayload, (const char *)params->data, bytesRead);
         DEBUG("Received string: '");
         DEBUG((const char *)params->data);             //Note the size of data expands to the largest string received. Need to use bytesRead to resize.
         DEBUG("'\n\r");