My Project
 All Classes Functions Variables Pages
BLEEddystoneTLM.h
1 /*
2  * BLEEddystoneTLM.cpp
3  *
4  * Created on: Mar 12, 2018
5  * Author: pcbreflux
6  */
7 
8 #ifndef _BLEEddystoneTLM_H_
9 #define _BLEEddystoneTLM_H_
10 #include "BLEUUID.h"
11 
12 #define EDDYSTONE_TLM_FRAME_TYPE 0x20
13 
20 public:
22  std::string getData();
23  BLEUUID getUUID();
24  uint8_t getVersion();
25  uint16_t getVolt();
26  float getTemp();
27  uint32_t getCount();
28  uint32_t getTime();
29  std::string toString();
30  void setData(std::string data);
31  void setUUID(BLEUUID l_uuid);
32  void setVersion(uint8_t version);
33  void setVolt(uint16_t volt);
34  void setTemp(float temp);
35  void setCount(uint32_t advCount);
36  void setTime(uint32_t tmil);
37 
38 private:
39  uint16_t beaconUUID;
40  struct {
41  uint8_t frameType;
42  uint8_t version;
43  uint16_t volt;
44  uint16_t temp;
45  uint32_t advCount;
46  uint32_t tmil;
47  } __attribute__((packed)) m_eddystoneData;
48 
49 }; // BLEEddystoneTLM
50 
51 #endif /* _BLEEddystoneTLM_H_ */
Representation of a beacon. See:
Definition: BLEEddystoneTLM.h:19