Alberto Franco / Mbed 2 deprecated BLENano_SimpleControls

Dependencies:   BLE_API mbed nRF51822

Fork of BLENano_SimpleControls by RedBearLab

Files at this revision

API Documentation at this revision

Comitter:
hube
Date:
Wed Jun 24 09:46:31 2015 +0000
Parent:
1:81a97eb70d3d
Commit message:
Fixed example, should build with the newest versions of the library.

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
mbed.bld 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
diff -r 81a97eb70d3d -r cb108714ca4a BLE_API.lib
--- a/BLE_API.lib	Fri Oct 31 14:44:32 2014 +0000
+++ b/BLE_API.lib	Wed Jun 24 09:46:31 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#4b68a819ab4f
+http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#9f4251b3355c
diff -r 81a97eb70d3d -r cb108714ca4a main.cpp
--- a/main.cpp	Fri Oct 31 14:44:32 2014 +0000
+++ b/main.cpp	Wed Jun 24 09:46:31 2015 +0000
@@ -18,7 +18,7 @@
 */
 
 #include "mbed.h"
-#include "BLEDevice.h"
+#include "BLE.h"
 #include "Servo.h"
 
 
@@ -78,12 +78,12 @@
     ble.startAdvertising();
 }
 
-void WrittenHandler(const GattCharacteristicWriteCBParams *Handler)
+void WrittenHandler(const GattWriteCallbackParams *Handler)
 {   
     uint8_t buf[TXRX_BUF_LEN];
     uint16_t bytesRead;
     
-    if (Handler->charHandle == txCharacteristic.getValueAttribute().getHandle()) 
+    if (Handler->handle == txCharacteristic.getValueAttribute().getHandle()) 
     {
         ble.readCharacteristicValue(txCharacteristic.getValueAttribute().getHandle(), buf, &bytesRead);
         memset(txPayload, 0, TXRX_BUF_LEN);
diff -r 81a97eb70d3d -r cb108714ca4a mbed.bld
--- a/mbed.bld	Fri Oct 31 14:44:32 2014 +0000
+++ b/mbed.bld	Wed Jun 24 09:46:31 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/cb3d968589d8
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/7cff1c4259d7
\ No newline at end of file
diff -r 81a97eb70d3d -r cb108714ca4a nRF51822.lib
--- a/nRF51822.lib	Fri Oct 31 14:44:32 2014 +0000
+++ b/nRF51822.lib	Wed Jun 24 09:46:31 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/teams/Nordic-Semiconductor/code/nRF51822/#936d81c963fe
+http://mbed.org/teams/Nordic-Semiconductor/code/nRF51822/#7c68c8d67e1f