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.
Fork of BLE_API by
Diff: ble/services/iBeaconService.h
- Revision:
- 750:05ef62c6dbd1
- Parent:
- 728:997ba5e7b3b6
--- a/ble/services/iBeaconService.h Tue Jul 21 13:25:39 2015 +0100
+++ b/ble/services/iBeaconService.h Tue Jul 21 13:25:39 2015 +0100
@@ -17,14 +17,13 @@
#define __BLE_IBEACON_SERVICE_H__
#include "core_cmInstr.h"
-#include "BLE.h"
+#include "ble/BLE.h"
/**
-* @class iBeaconService
-* @brief iBeacon Service. This service sets up a device to broadcast advertising packets to mimic an iBeacon<br>
+* @class iBeacon
+* @brief iBeacon Service. This sets up a device to broadcast advertising packets to mimic an iBeacon<br>
*/
-
-class iBeaconService
+class iBeacon
{
public:
typedef const uint8_t LocationUUID_t[16];
@@ -49,12 +48,12 @@
};
public:
- iBeaconService(BLE &_ble,
- LocationUUID_t uuid,
- uint16_t majNum,
- uint16_t minNum,
- uint8_t txP = 0xC8,
- uint16_t compID = 0x004C) :
+ iBeacon(BLE &_ble,
+ LocationUUID_t uuid,
+ uint16_t majNum,
+ uint16_t minNum,
+ uint8_t txP = 0xC8,
+ uint16_t compID = 0x004C) :
ble(_ble), data(uuid, majNum, minNum, txP, compID)
{
// Generate the 0x020106 part of the iBeacon Prefix
@@ -71,4 +70,6 @@
Payload data;
};
+typedef iBeacon iBeaconService; /* This type-alias is deprecated. Please use iBeacon directly. This alias may be dropped from a future release. */
+
#endif //__BLE_IBEACON_SERVICE_H__
\ No newline at end of file
