Rename iBeaconService as iBeacon. This is not a Service in the BLE sense.
This commit is contained in:
parent
09076e1673
commit
90551b6eb7
1 changed files with 12 additions and 11 deletions
|
@ -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:
|
|||
};
|
||||
|
||||
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 @@ protected:
|
|||
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__
|
||||
|
|
Loading…
Reference in a new issue