Simple example to demonstrate custom made BLE service and characteristics.

Fork of BLE_GATT_Example by Bluetooth Low Energy

Files at this revision

API Documentation at this revision

Comitter:
mbedAustin
Date:
Thu Apr 02 17:23:10 2015 +0000
Parent:
15:35f06d4f2130
Child:
17:32973972d2dd
Commit message:
updated libraries

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 Mar 18 21:02:38 2015 +0000
+++ b/BLE_API.lib	Thu Apr 02 17:23:10 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#d87182a62c1b
+http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#8c645f5694b2
--- a/main.cpp	Wed Mar 18 21:02:38 2015 +0000
+++ b/main.cpp	Thu Apr 02 17:23:10 2015 +0000
@@ -71,7 +71,7 @@
     ble.setAdvertisingType(GapAdvertisingParams::ADV_CONNECTABLE_UNDIRECTED); // advertising type
     ble.accumulateAdvertisingPayload(GapAdvertisingData::COMPLETE_LOCAL_NAME, (uint8_t *)DEVICE_NAME, sizeof(DEVICE_NAME)); // add name
     ble.accumulateAdvertisingPayload(GapAdvertisingData::COMPLETE_LIST_16BIT_SERVICE_IDS, (uint8_t *)uuid16_list, sizeof(uuid16_list)); // UUID's broadcast in advertising packet
-    ble.setAdvertisingInterval(160); /* 100ms; in multiples of 0.625ms. */
+    ble.setAdvertisingInterval(0.1); // 100ms. 
 
     // add our custom service
     ble.addService(customService);
--- a/nRF51822.lib	Wed Mar 18 21:02:38 2015 +0000
+++ b/nRF51822.lib	Thu Apr 02 17:23:10 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/teams/Nordic-Semiconductor/code/nRF51822/#f96993b65e90
+http://mbed.org/teams/Nordic-Semiconductor/code/nRF51822/#bdc690669431