Update for latest nRF51822 code changes.

Dependencies:   BLE_API nRF51822

Fork of Puck by Nordic Pucks

Files at this revision

API Documentation at this revision

Comitter:
Timmmm
Date:
Fri Jul 24 18:43:36 2015 +0000
Parent:
24:cd6703df9501
Commit message:
Update for latest nRF51822 repo.

Changed in this revision

BLE_API.lib Show annotated file Show diff for this revision Revisions of this file
Puck.h 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	Mon Mar 09 13:38:22 2015 +0000
+++ b/BLE_API.lib	Fri Jul 24 18:43:36 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#1956023d42fb
+http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#4cd3b18607ec
--- a/Puck.h	Mon Mar 09 13:38:22 2015 +0000
+++ b/Puck.h	Fri Jul 24 18:43:36 2015 +0000
@@ -18,7 +18,7 @@
 #ifndef __PUCK_HPP__
 #define __PUCK_HPP__
  
-#include "BLEDevice.h"
+#include "BLE.h"
 #include "mbed.h"
 #include "Log.h"
 #include <vector>
@@ -97,16 +97,13 @@
     Puck::getPuck().setState(DISCONNECTED);
 }
 
-void onConnection(Gap::Handle_t handle,
-        Gap::addr_type_t peerAddrType,
-        const Gap::address_t peerAddr,
-        const Gap::ConnectionParams_t * connectionParams) {
+void onConnection(const Gap::ConnectionCallbackParams_t *params) {
     LOG_INFO("Connected.\n");
     Puck::getPuck().setState(CONNECTED);
 }
 
-void onDataWrittenCallback(const GattCharacteristicWriteCBParams *context) {
-    Puck::getPuck().onDataWritten(context->charHandle, context->data, context->len);
+void onDataWrittenCallback(const GattWriteCallbackParams *params) {
+    Puck::getPuck().onDataWritten(params->handle, params->data, params->len);
 }
 
 bool isEqualUUID(const UUID* uuidA, const UUID uuidB) {
--- a/nRF51822.lib	Mon Mar 09 13:38:22 2015 +0000
+++ b/nRF51822.lib	Fri Jul 24 18:43:36 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/teams/Nordic-Semiconductor/code/nRF51822/#0e7a9efee6d7
+http://mbed.org/teams/Nordic-Semiconductor/code/nRF51822/#c7adea3c1e37