Direct-BT  2.3.1
Direct-BT - Direct Bluetooth Programming.
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
direct_bt::GattPnP_ID Struct Reference

PnP ID is a GATT Characteristic. More...

#include <GattNumbers.hpp>

Collaboration diagram for direct_bt::GattPnP_ID:

Public Member Functions

 GattPnP_ID () noexcept
 
 GattPnP_ID (const TROOctets &source) noexcept
 
 GattPnP_ID (const uint8_t vendor_id_source_, const uint16_t vendor_id_, const uint16_t product_id_, const uint16_t product_version_) noexcept
 
std::string toString () const noexcept
 

Static Public Member Functions

static std::shared_ptr< GattPnP_IDget (const TROOctets &source) noexcept
 

Public Attributes

const uint8_t vendor_id_source
 
const uint16_t vendor_id
 
const uint16_t product_id
 
const uint16_t product_version
 

Detailed Description

PnP ID is a GATT Characteristic.

https://www.bluetooth.com/wp-content/uploads/Sitecore-Media-Library/Gatt/Xml/Characteristics/org.bluetooth.characteristic.pnp_id.xml

Definition at line 290 of file GattNumbers.hpp.

Constructor & Destructor Documentation

◆ GattPnP_ID() [1/3]

direct_bt::GattPnP_ID::GattPnP_ID ( )
inlinenoexcept

Definition at line 298 of file GattNumbers.hpp.

◆ GattPnP_ID() [2/3]

GattPnP_ID::GattPnP_ID ( const TROOctets source)
noexcept

Definition at line 387 of file GATTNumbers.cpp.

◆ GattPnP_ID() [3/3]

direct_bt::GattPnP_ID::GattPnP_ID ( const uint8_t  vendor_id_source_,
const uint16_t  vendor_id_,
const uint16_t  product_id_,
const uint16_t  product_version_ 
)
inlinenoexcept

Definition at line 303 of file GattNumbers.hpp.

Member Function Documentation

◆ get()

std::shared_ptr< GattPnP_ID > GattPnP_ID::get ( const TROOctets source)
staticnoexcept

Definition at line 391 of file GATTNumbers.cpp.

Here is the caller graph for this function:

◆ toString()

std::string GattPnP_ID::toString ( ) const
noexcept

Definition at line 400 of file GATTNumbers.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ product_id

const uint16_t direct_bt::GattPnP_ID::product_id

Definition at line 293 of file GattNumbers.hpp.

◆ product_version

const uint16_t direct_bt::GattPnP_ID::product_version

Definition at line 294 of file GattNumbers.hpp.

◆ vendor_id

const uint16_t direct_bt::GattPnP_ID::vendor_id

Definition at line 292 of file GattNumbers.hpp.

◆ vendor_id_source

const uint8_t direct_bt::GattPnP_ID::vendor_id_source

Definition at line 291 of file GattNumbers.hpp.


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