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 mbed nRF51822
Fork of BLENano_SimpleControls by
Diff: main.cpp
- Revision:
- 2:cb108714ca4a
- Parent:
- 1:81a97eb70d3d
--- 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);
