Kallisto Linux API
Library for interacting with Kallisto devices
BluetoothAdapter::ScanListener::ScanRecord Class Reference

#include <bluetooth_adapter.hpp>

Public Member Functions

 ScanRecord ()
 
 ScanRecord (std::chrono::nanoseconds _timestamp, std::map< std::string, std::vector< uint8_t >> _service_data, std::map< uint16_t, std::vector< uint8_t >> _manufacturer_data, int _rssi)
 

Data Fields

const std::chrono::nanoseconds timestamp
 
const std::map< std::string, std::vector< uint8_t > > service_data
 
const std::map< uint16_t, std::vector< uint8_t > > manufacturer_data
 
const int rssi
 

Detailed Description

Container for Scan data

Constructor & Destructor Documentation

◆ ScanRecord() [1/2]

ScanRecord ( )
inline

Constructor.

◆ ScanRecord() [2/2]

ScanRecord ( std::chrono::nanoseconds  _timestamp,
std::map< std::string, std::vector< uint8_t >>  _service_data,
std::map< uint16_t, std::vector< uint8_t >>  _manufacturer_data,
int  _rssi 
)
inline

Constructor.

Here is the call graph for this function:

Field Documentation

◆ manufacturer_data

const std::map<uint16_t, std::vector<uint8_t> > manufacturer_data

The advertised manufacturer data of the device. Each key represents an company ID and each value is a byte array of the service data. Will be empty if there was no data.

◆ rssi

const int rssi

RSSI value, in dBm.

◆ service_data

const std::map<std::string, std::vector<uint8_t> > service_data

The advertised service data of the device. Each key represent an UUID and each value is a byte array of the service data. Will be empty if there was no data.

◆ timestamp

const std::chrono::nanoseconds timestamp

Timestamp of the record, since epoch, in nanoseconds.


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