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: ADT7410 BLE_API mbed nRF51822
Diff: main.cpp
- Revision:
- 3:f530ca03e014
- Parent:
- 2:3cd654f42efa
- Child:
- 4:7e5d4a18cd22
diff -r 3cd654f42efa -r f530ca03e014 main.cpp
--- a/main.cpp Mon Jul 27 06:53:46 2015 +0000
+++ b/main.cpp Thu Jan 07 02:43:53 2016 +0000
@@ -71,11 +71,11 @@
-void disconnectionCallback(Gap::Handle_t handle, Gap::DisconnectionReason_t reason)
+void disconnectionCallback(const Gap::DisconnectionCallbackParams_t *params)
{
//pc.printf("Disconnected \r\n");
//pc.printf("Restart advertising \r\n");
- ble.startAdvertising();
+ ble.gap().startAdvertising();
}
void WrittenHandler(const GattWriteCallbackParams *Handler)