Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BLE_API LIS3DH mbed nRF51822 BMC050 nRF51_LowPwr nRF51_Vdd
Fork of BLE_EddystoneBeacon_Service by
Revision 7:e9800c45e065, committed 2015-06-19
- Comitter:
- rgrover1
- Date:
- Fri Jun 19 23:50:32 2015 +0000
- Parent:
- 6:e90c398b03e0
- Child:
- 8:1a21308e5008
- Commit message:
- updating to the latest of the underlying libraries.
Changed in this revision
--- a/BLE_API.lib Fri May 15 08:30:08 2015 +0000 +++ b/BLE_API.lib Fri Jun 19 23:50:32 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#8a104d9d80c1 +http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#9f4251b3355c
--- a/ZipBeaconConfigService.h Fri May 15 08:30:08 2015 +0000
+++ b/ZipBeaconConfigService.h Fri Jun 19 23:50:32 2015 +0000
@@ -17,7 +17,7 @@
#ifndef SERVICES_ZIPBEACONCONFIGSERVICE_H_
#define SERVICES_ZIPBEACONCONFIGSERVICE_H_
-#include "BLEDevice.h"
+#include "BLE.h"
#include "mbed.h"
#define UUID_URI_BEACON(FIRST, SECOND) { \
@@ -241,8 +241,8 @@
* characteristics of this service. Attempts to do so are also applied to
* the internal state of this service object.
*/
- void onDataWrittenCallback(const GattCharacteristicWriteCBParams *writeParams) {
- uint16_t handle = writeParams->charHandle;
+ void onDataWrittenCallback(const GattWriteCallbackParams *writeParams) {
+ uint16_t handle = writeParams->handle;
if (handle == lockChar.getValueHandle()) {
// Validated earlier
@@ -315,7 +315,7 @@
}
private:
- void lockAuthorizationCallback(GattCharacteristicWriteAuthCBParams *authParams) {
+ void lockAuthorizationCallback(GattWriteAuthCallbackParams *authParams) {
if (lockedState) {
authParams->authorizationReply = AUTH_CALLBACK_REPLY_ATTERR_INSUF_AUTHORIZATION;
} else if (authParams->len != sizeof(Lock_t)) {
@@ -328,7 +328,7 @@
}
- void unlockAuthorizationCallback(GattCharacteristicWriteAuthCBParams *authParams) {
+ void unlockAuthorizationCallback(GattWriteAuthCallbackParams *authParams) {
if (!lockedState) {
authParams->authorizationReply = AUTH_CALLBACK_REPLY_SUCCESS;
} else if (authParams->len != sizeof(Lock_t)) {
@@ -342,7 +342,7 @@
}
}
- void uriDataWriteAuthorizationCallback(GattCharacteristicWriteAuthCBParams *authParams) {
+ void uriDataWriteAuthorizationCallback(GattWriteAuthCallbackParams *authParams) {
if (lockedState) {
authParams->authorizationReply = AUTH_CALLBACK_REPLY_ATTERR_INSUF_AUTHORIZATION;
} else if (authParams->offset != 0) {
@@ -352,7 +352,7 @@
}
}
- void powerModeAuthorizationCallback(GattCharacteristicWriteAuthCBParams *authParams) {
+ void powerModeAuthorizationCallback(GattWriteAuthCallbackParams *authParams) {
if (lockedState) {
authParams->authorizationReply = AUTH_CALLBACK_REPLY_ATTERR_INSUF_AUTHORIZATION;
} else if (authParams->len != sizeof(uint8_t)) {
@@ -367,7 +367,7 @@
}
template <typename T>
- void basicAuthorizationCallback(GattCharacteristicWriteAuthCBParams *authParams) {
+ void basicAuthorizationCallback(GattWriteAuthCallbackParams *authParams) {
if (lockedState) {
authParams->authorizationReply = AUTH_CALLBACK_REPLY_ATTERR_INSUF_AUTHORIZATION;
} else if (authParams->len != sizeof(T)) {
--- a/main.cpp Fri May 15 08:30:08 2015 +0000 +++ b/main.cpp Fri Jun 19 23:50:32 2015 +0000 @@ -15,7 +15,7 @@ */ #include "mbed.h" -#include "BLEDevice.h" +#include "BLE.h" #include "ZipBeaconConfigService.h" #include "DFUService.h" #include "DeviceInformationService.h"
--- a/mbed.bld Fri May 15 08:30:08 2015 +0000 +++ b/mbed.bld Fri Jun 19 23:50:32 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/433970e64889 \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/7cff1c4259d7 \ No newline at end of file
--- a/nRF51822.lib Fri May 15 08:30:08 2015 +0000 +++ b/nRF51822.lib Fri Jun 19 23:50:32 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/teams/Nordic-Semiconductor/code/nRF51822/#be2a122ed2f7 +http://mbed.org/teams/Nordic-Semiconductor/code/nRF51822/#7c68c8d67e1f
