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.
Dependents: BLE_ANCS_SDAPI BLE_temperature BLE_HeartRate writable_gatt ... more
Revision 25:a1c356620131, committed 2014-06-10
- Comitter:
- Rohit Grover
- Date:
- Tue Jun 10 13:13:35 2014 +0100
- Parent:
- 24:3444ee6fd548
- Child:
- 26:dade7d2857b4
- Commit message:
- reverting to BLEDevice (from BLEPeripheral)
Changed in this revision
| nRF51822n.cpp | Show annotated file Show diff for this revision Revisions of this file |
| nRF51822n.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/nRF51822n.cpp Tue Jun 10 09:32:28 2014 +0100
+++ b/nRF51822n.cpp Tue Jun 10 13:13:35 2014 +0100
@@ -23,16 +23,16 @@
/**
* The singleton which represents the nRF51822 transport for the BLEDevice.
*/
-static nRF51822n peripheralInstance;
+static nRF51822n deviceInstance;
/**
* BLE-API requires an implementation of the following function in order to
* obtain its transport handle.
*/
-BLEPeripheralInstanceBase *
-createBLEPeripheralInstance(void)
+BLEDeviceInstanceBase *
+createBLEDeviceInstance(void)
{
- return (&peripheralInstance);
+ return (&deviceInstance);
}
/**************************************************************************/
--- a/nRF51822n.h Tue Jun 10 09:32:28 2014 +0100
+++ b/nRF51822n.h Tue Jun 10 13:13:35 2014 +0100
@@ -24,11 +24,11 @@
#include "mbed.h"
#include "blecommon.h"
-#include "BLEPeripheral.h"
+#include "BLEDevice.h"
#include "nRF51Gap.h"
#include "nRF51GattServer.h"
-class nRF51822n : public BLEPeripheralInstanceBase
+class nRF51822n : public BLEDeviceInstanceBase
{
public:
nRF51822n(void);

