Direct-BT
2.3.1
Direct-BT - Direct Bluetooth Programming.
|
Collection of 'Extended Advertising Data' (EAD), 'Advertising Data' (AD) or 'Extended Inquiry Response' (EIR) information. More...
#include <BTTypes0.hpp>
Public Types | |
enum | Source : int { Source::NA, Source::AD, Source::EAD, Source::EIR, Source::EIR_MGMT } |
Public Member Functions | |
EInfoReport () noexcept | |
void | setSource (Source s) noexcept |
void | setTimestamp (uint64_t ts) noexcept |
void | setEvtType (AD_PDU_Type et) noexcept |
void | setExtEvtType (EAD_Event_Type eadt) noexcept |
void | setADAddressType (uint8_t adAddressType) noexcept |
void | setAddressType (BDAddressType at) noexcept |
void | setAddress (EUI48 const &a) noexcept |
void | setRSSI (int8_t v) noexcept |
int | read_data (uint8_t const *data, uint8_t const data_length) noexcept |
Reads the Extended Inquiry Response (EIR) or (Extended) Advertising Data (EAD or AD) segments and returns the number of parsed data segments;. More... | |
Source | getSource () const noexcept |
uint64_t | getTimestamp () const noexcept |
bool | isSet (EIRDataType bit) const noexcept |
EIRDataType | getEIRDataMask () const noexcept |
AD_PDU_Type | getEvtType () const noexcept |
EAD_Event_Type | getExtEvtType () const noexcept |
GAPFlags | getFlags () const noexcept |
uint8_t | getADAddressType () const noexcept |
BDAddressType | getAddressType () const noexcept |
EUI48 const & | getAddress () const noexcept |
std::string const & | getName () const noexcept |
std::string const & | getShortName () const noexcept |
int8_t | getRSSI () const noexcept |
int8_t | getTxPower () const noexcept |
std::shared_ptr< ManufactureSpecificData > | getManufactureSpecificData () const noexcept |
jau::darray< std::shared_ptr< uuid_t > > | getServices () const noexcept |
uint32_t | getDeviceClass () const noexcept |
AppearanceCat | getAppearance () const noexcept |
const TROOctets & | getHash () const noexcept |
const TROOctets & | getRandomizer () const noexcept |
uint16_t | getDeviceIDSource () const noexcept |
uint16_t | getDeviceIDVendor () const noexcept |
uint16_t | getDeviceIDProduct () const noexcept |
uint16_t | getDeviceIDVersion () const noexcept |
std::string | getDeviceIDModalias () const noexcept |
std::string | eirDataMaskToString () const noexcept |
std::string | toString (const bool includeServices=true) const noexcept |
Static Public Member Functions | |
static jau::darray< std::unique_ptr< EInfoReport > > | read_ext_ad_reports (uint8_t const *data, jau::nsize_t const data_length) noexcept |
Reads a complete Advertising Data (AD) Report and returns the number of AD reports in form of a sharable list of EInfoReport;. More... | |
Collection of 'Extended Advertising Data' (EAD), 'Advertising Data' (AD) or 'Extended Inquiry Response' (EIR) information.
References:
Definition at line 802 of file BTTypes0.hpp.
|
strong |
Enumerator | |
---|---|
NA | not available |
AD | |
EAD | |
EIR | Extended Inquiry Response (EIR) |
EIR_MGMT | Extended Inquiry Response (EIR) from Kernel Mgmt. |
Definition at line 805 of file BTTypes0.hpp.
|
inlinenoexcept |
Definition at line 862 of file BTTypes0.hpp.
|
noexcept |
|
inlinenoexcept |
Definition at line 939 of file BTTypes0.hpp.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 951 of file BTTypes0.hpp.
|
inlinenoexcept |
Definition at line 950 of file BTTypes0.hpp.
|
noexcept |
Definition at line 940 of file BTTypes0.cpp.
|
inlinenoexcept |
Definition at line 956 of file BTTypes0.hpp.
|
inlinenoexcept |
Definition at line 954 of file BTTypes0.hpp.
|
inlinenoexcept |
Definition at line 955 of file BTTypes0.hpp.
|
inlinenoexcept |
Definition at line 957 of file BTTypes0.hpp.
|
inlinenoexcept |
Definition at line 934 of file BTTypes0.hpp.
|
inlinenoexcept |
Definition at line 936 of file BTTypes0.hpp.
|
inlinenoexcept |
Definition at line 937 of file BTTypes0.hpp.
|
inlinenoexcept |
Definition at line 938 of file BTTypes0.hpp.
|
inlinenoexcept |
Definition at line 952 of file BTTypes0.hpp.
|
inlinenoexcept |
Definition at line 947 of file BTTypes0.hpp.
|
inlinenoexcept |
Definition at line 942 of file BTTypes0.hpp.
|
inlinenoexcept |
Definition at line 953 of file BTTypes0.hpp.
|
inlinenoexcept |
Definition at line 944 of file BTTypes0.hpp.
|
inlinenoexcept |
Definition at line 948 of file BTTypes0.hpp.
|
inlinenoexcept |
Definition at line 943 of file BTTypes0.hpp.
|
inlinenoexcept |
Definition at line 931 of file BTTypes0.hpp.
|
inlinenoexcept |
Definition at line 932 of file BTTypes0.hpp.
|
inlinenoexcept |
Definition at line 945 of file BTTypes0.hpp.
|
inlinenoexcept |
Definition at line 933 of file BTTypes0.hpp.
|
noexcept |
Reads the Extended Inquiry Response (EIR) or (Extended) Advertising Data (EAD or AD) segments and returns the number of parsed data segments;.
AD as well as EIR information is passed in little endian order in the same fashion data block:
a -> { uint8_t len uint8_t type uint8_t data[len-1]; } b -> next block = a + 1 + len;
References:
https://www.bluetooth.com/specifications/archived-specifications/
Definition at line 993 of file BTTypes0.cpp.
|
staticnoexcept |
Reads a complete Advertising Data (AD) Report and returns the number of AD reports in form of a sharable list of EInfoReport;.
BT Core Spec v5.2: Vol 4, Part E, 7.7.65.2 LE Advertising Report event BT Core Spec v5.2: Vol 3, Part C, 11 ADVERTISING AND SCAN RESPONSE DATA FORMAT BT Core Spec v5.2: Vol 3, Part C, 8 EXTENDED INQUIRY RESPONSE DATA FORMAThttps://www.bluetooth.com/specifications/archived-specifications/
*/ static jau::darray<std::unique_ptr<EInfoReport>> read_ad_reports(uint8_t const * data, jau::nsize_t const data_length) noexcept;
/** Reads a complete Extended Advertising Data (AD) Report and returns the number of AD reports in form of a sharable list of EInfoReport;BT Core Spec v5.2: Vol 4, Part E, 7.7.65.13 LE Extended Advertising Report event BT Core Spec v5.2: Vol 3, Part C, 11 ADVERTISING AND SCAN RESPONSE DATA FORMAT BT Core Spec v5.2: Vol 3, Part C, 8 EXTENDED INQUIRY RESPONSE DATA FORMAT
https://www.bluetooth.com/specifications/archived-specifications/
Definition at line 1183 of file BTTypes0.cpp.
|
noexcept |
Definition at line 847 of file BTTypes0.cpp.
|
inlinenoexcept |
Definition at line 870 of file BTTypes0.hpp.
|
noexcept |
Definition at line 859 of file BTTypes0.cpp.
|
inlinenoexcept |
Definition at line 866 of file BTTypes0.hpp.
|
inlinenoexcept |
Definition at line 867 of file BTTypes0.hpp.
|
inlinenoexcept |
Definition at line 871 of file BTTypes0.hpp.
|
inlinenoexcept |
Definition at line 864 of file BTTypes0.hpp.
|
inlinenoexcept |
Definition at line 865 of file BTTypes0.hpp.
|
noexcept |