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: nrf51-sdk
Fork of nRF51822 by
Diff: nRF51Gap.h
- Revision:
- 1:f84abedbf4fb
- Parent:
- 0:eff01767de02
- Child:
- 3:791d672cbbec
diff -r eff01767de02 -r f84abedbf4fb nRF51Gap.h
--- a/nRF51Gap.h Wed Mar 26 14:38:17 2014 +0000
+++ b/nRF51Gap.h Thu Apr 03 01:45:38 2014 +0100
@@ -19,6 +19,7 @@
#include "mbed.h"
#include "blecommon.h"
+#include "ble.h"
#include "GapAdvertisingParams.h"
#include "GapAdvertisingData.h"
#include "hw/Gap.h"
@@ -39,13 +40,18 @@
}
/* Functions that must be implemented from Gap */
+ virtual ble_error_t setAddress(addr_type_t type, uint8_t address[6]);
virtual ble_error_t setAdvertisingData(GapAdvertisingData &, GapAdvertisingData &);
virtual ble_error_t startAdvertising(GapAdvertisingParams &);
virtual ble_error_t stopAdvertising(void);
virtual ble_error_t disconnect(void);
+ void setConnectionHandle(uint16_t con_handle);
+ uint16_t getConnectionHandle(void);
+
private:
- nRF51Gap() { };
+ uint16_t m_connectionHandle;
+ nRF51Gap() { m_connectionHandle = BLE_CONN_HANDLE_INVALID; };
nRF51Gap(nRF51Gap const&);
void operator=(nRF51Gap const&);
};
