High level Bluetooth Low Energy API and radio abstraction layer

Dependencies:   nRF51822

Dependents:   LinkNode_LIS3DH

Fork of BLE_API by Bluetooth Low Energy

Files at this revision

API Documentation at this revision

Comitter:
ktownsend
Date:
Thu Dec 19 14:02:49 2013 +0000
Parent:
19:a6f33421746c
Child:
21:5442f7c70e71
Commit message:
Switched to main mbed library

Changed in this revision

hw/nrf51822.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-src-flowcontrol-new.lib Show diff for this revision Revisions of this file
mbed-src.lib Show annotated file Show diff for this revision Revisions of this file
--- a/hw/nrf51822.cpp	Wed Dec 18 20:11:45 2013 +0000
+++ b/hw/nrf51822.cpp	Thu Dec 19 14:02:49 2013 +0000
@@ -11,7 +11,7 @@
     /* ToDo: Check responses and set a flag for success/error/etc. */
     
     /* Read serial to clear the RX interrupt */
-    printf("%c", uart.getc());
+    uart.getc();
 }
 
 /**************************************************************************/
@@ -174,14 +174,11 @@
     /* 2.) Send advertising data, Command ID = 0x000A */
     len = advData.getPayloadLen();
     buffer = advData.getPayload();
-    printf("10 0A 00 %02X", len);
     uart.printf("10 0A 00 %02X", len);
     for (uint16_t i = 0; i < len; i++)
     {
-        printf(" %02X", buffer[i]);
         uart.printf(" %02X", buffer[i]);
     }
-    printf("\r\n");
     uart.printf("\r\n");
     
     /* ToDo: Check response */
@@ -192,14 +189,11 @@
     {
         len = scanResponse.getPayloadLen();
         buffer = scanResponse.getPayload();
-        printf("10 0B 00 %02X", len);
         uart.printf("10 0B 00 %02X", len);
         for (uint16_t i = 0; i < len; i++)
         {
-            printf(" %02X", buffer[i]);
             uart.printf(" %02X", buffer[i]);
         }
-        printf("\r\n");
         uart.printf("\r\n");
 
         /* ToDo: Check response */
--- a/mbed-src-flowcontrol-new.lib	Wed Dec 18 20:11:45 2013 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://mbed.org/users/bogdanm/code/mbed-src-flowcontrol-new/#d12849734720
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-src.lib	Thu Dec 19 14:02:49 2013 +0000
@@ -0,0 +1,1 @@
+https://mbed.org/users/mbed_official/code/mbed-src/#7b352733b00a