15#ifndef _NimBLEEddystoneTLM_H_
16#define _NimBLEEddystoneTLM_H_
18#include "NimBLEUUID.h"
22#define EDDYSTONE_TLM_FRAME_TYPE 0x20
40 void setData(
const std::string &data);
57 } __attribute__((packed)) m_eddystoneData;
Representation of a beacon. See:
Definition: NimBLEEddystoneTLM.h:29
void setData(const std::string &data)
Set the raw data for the beacon advertisement.
Definition: NimBLEEddystoneTLM.cpp:164
void setVersion(uint8_t version)
Set the version to advertise.
Definition: NimBLEEddystoneTLM.cpp:187
void setUUID(const NimBLEUUID &l_uuid)
Set the UUID to advertise.
Definition: NimBLEEddystoneTLM.cpp:178
NimBLEEddystoneTLM()
Construct a default EddystoneTLM beacon object.
Definition: NimBLEEddystoneTLM.cpp:32
uint32_t getCount()
Get the count of advertisements sent.
Definition: NimBLEEddystoneTLM.cpp:91
void setCount(uint32_t advCount)
Set the advertisement count.
Definition: NimBLEEddystoneTLM.cpp:214
void setTemp(float temp)
Set the temperature to advertise.
Definition: NimBLEEddystoneTLM.cpp:205
std::string toString()
Get a string representation of the beacon.
Definition: NimBLEEddystoneTLM.cpp:109
void setTime(uint32_t tmil)
Set the advertisement time.
Definition: NimBLEEddystoneTLM.cpp:223
NimBLEUUID getUUID()
Get the UUID being advertised.
Definition: NimBLEEddystoneTLM.cpp:56
uint32_t getTime()
Get the advertisement time.
Definition: NimBLEEddystoneTLM.cpp:100
float getTemp()
Get the temperature being advertised.
Definition: NimBLEEddystoneTLM.cpp:83
void setVolt(uint16_t volt)
Set the battery voltage to advertise.
Definition: NimBLEEddystoneTLM.cpp:196
std::string getData()
Retrieve the data that is being advertised.
Definition: NimBLEEddystoneTLM.cpp:47
uint8_t getVersion()
Get the version being advertised.
Definition: NimBLEEddystoneTLM.cpp:65
uint16_t getVolt()
Get the battery voltage.
Definition: NimBLEEddystoneTLM.cpp:74
A model of a BLE UUID.
Definition: NimBLEUUID.h:37