fork BLE_API to add update adv payload API
Fork of BLE_API by
Revision 750:05ef62c6dbd1, committed 2015-07-21
- Comitter:
- rgrover1
- Date:
- Tue Jul 21 13:25:39 2015 +0100
- Parent:
- 749:30b5e01ffe2d
- Child:
- 751:868b6dd7a6bf
- Commit message:
- Synchronized with git rev 90551b6e
Author: Rohit Grover
Rename iBeaconService as iBeacon. This is not a Service in the BLE sense.
Changed in this revision
ble/services/iBeaconService.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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