My Project
 All Classes Functions Variables Pages
BLEEddystoneURL.h
1 /*
2  * BLEEddystoneURL.cpp
3  *
4  * Created on: Mar 12, 2018
5  * Author: pcbreflux
6  */
7 
8 #ifndef _BLEEddystoneURL_H_
9 #define _BLEEddystoneURL_H_
10 #include "BLEUUID.h"
11 
12 #define EDDYSTONE_URL_FRAME_TYPE 0x10
13 
20 public:
22  std::string getData();
23  BLEUUID getUUID();
24  int8_t getPower();
25  std::string getURL();
26  std::string getDecodedURL();
27  void setData(std::string data);
28  void setUUID(BLEUUID l_uuid);
29  void setPower(int8_t advertisedTxPower);
30  void setURL(std::string url);
31 
32 private:
33  uint16_t beaconUUID;
34  uint8_t lengthURL;
35  struct {
36  uint8_t frameType;
37  int8_t advertisedTxPower;
38  uint8_t url[16];
39  } __attribute__((packed)) m_eddystoneData;
40 
41 }; // BLEEddystoneURL
42 
43 #endif /* _BLEEddystoneURL_H_ */
Representation of a beacon. See:
Definition: BLEEddystoneURL.h:19