use UART Service to loopback anything received on the TX characteristic onto the RX.

Dependencies:   BLE_API mbed nRF51822

Dependents:   BLE_ToUART

Files at this revision

API Documentation at this revision

Comitter:
rgrover1
Date:
Fri Nov 28 14:18:56 2014 +0000
Parent:
9:5bc335f4f762
Child:
11:add794159852
Commit message:
updating to 0.2.5 of the BLE_API

Changed in this revision

BLE_API.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
nRF51822.lib Show annotated file Show diff for this revision Revisions of this file
--- a/BLE_API.lib	Wed Nov 05 14:17:33 2014 +0000
+++ b/BLE_API.lib	Fri Nov 28 14:18:56 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#fede41ce9407
+http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#933961a2ac6f
--- a/main.cpp	Wed Nov 05 14:17:33 2014 +0000
+++ b/main.cpp	Fri Nov 28 14:18:56 2014 +0000
@@ -73,7 +73,7 @@
     ble.accumulateAdvertisingPayload(GapAdvertisingData::COMPLETE_LIST_128BIT_SERVICE_IDS,
                                      (const uint8_t *)UARTServiceUUID_reversed, sizeof(UARTServiceUUID_reversed));
 
-    ble.setAdvertisingInterval(160); /* 100ms; in multiples of 0.625ms. */
+    ble.setAdvertisingInterval(Gap::MSEC_TO_ADVERTISEMENT_DURATION_UNITS(1000));
     ble.startAdvertising();
 
     UARTService uartService(ble);
--- a/nRF51822.lib	Wed Nov 05 14:17:33 2014 +0000
+++ b/nRF51822.lib	Fri Nov 28 14:18:56 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/teams/Nordic-Semiconductor/code/nRF51822/#61da91a52bd6
+http://mbed.org/teams/Nordic-Semiconductor/code/nRF51822/#9a5ba2c5d53c