SDK  23.9.2
For IoT System Software Development
Public Member Functions | List of all members
BLEBeacon Class Reference

Representation of a beacon. See: More...

#include <BLEBeacon.hpp>

Public Member Functions

std::string getData ()
 
uint16_t getMajor ()
 
uint16_t getMinor ()
 
uint16_t getManufacturerId ()
 
BLEUUID getProximityUUID ()
 
int8_t getSignalPower ()
 
void setData (std::string data)
 
void setMajor (uint16_t major)
 
void setMinor (uint16_t minor)
 
void setManufacturerId (uint16_t manufacturerId)
 
void setProximityUUID (BLEUUID uuid)
 
void setSignalPower (int8_t signalPower)
 

Detailed Description

Representation of a beacon. See:

Member Function Documentation

◆ setData()

void BLEBeacon::setData ( std::string  data)

Set the raw data for the beacon record.

70  {
71  if (data.length() != sizeof(m_beaconData)) {
72  void *logCtx __attribute__((unused)) = nullptr;
73  _debug_print_d(TAG, "Unable to set the data ... length passed in was ", data.length(), &logCtx);
74  _debug_print_d(TAG, " and expected", sizeof(m_beaconData), &logCtx);
75  return;
76  }
77  memcpy(&m_beaconData, data.data(), sizeof(m_beaconData));
78 } // setData

The documentation for this class was generated from the following files: