Direct-BT
2.3.1
Direct-BT - Direct Bluetooth Programming.
|
mgmt_addr_info { EUI48, uint8_t type }, uint8_t reason More...
#include <MgmtTypes.hpp>
Public Member Functions | |
MgmtEvtDeviceDisconnected (const uint8_t *buffer, const jau::nsize_t buffer_len) | |
MgmtEvtDeviceDisconnected (const uint16_t dev_id, const BDAddressAndType &addressAndType, HCIStatusCode hciReason_, const uint16_t hci_conn_handle_) | |
const EUI48 & | getAddress () const noexcept |
BDAddressType | getAddressType () const noexcept |
DisconnectReason | getReason () const noexcept |
HCIStatusCode | getHCIReason () const noexcept |
Returns either the HCI reason if given, or the translated DisconnectReason. More... | |
uint16_t | getHCIHandle () const noexcept |
Returns the disconnected HCI connection handle, assuming creation occurred via HCIHandler. More... | |
jau::nsize_t | getDataOffset () const noexcept override |
jau::nsize_t | getDataSize () const noexcept override |
const uint8_t * | getData () const noexcept override |
Public Member Functions inherited from direct_bt::MgmtEvent | |
MgmtEvent (const uint8_t *buffer, const jau::nsize_t buffer_len, const jau::nsize_t exp_param_size) | |
Persistent memory, w/ ownership . More... | |
MgmtEvent (const Opcode opc, const uint16_t dev_id, const uint16_t param_size=0) | |
MgmtEvent (const Opcode opc, const uint16_t dev_id, const uint16_t param_size, const uint8_t *param) | |
virtual | ~MgmtEvent () noexcept override |
jau::nsize_t | getTotalSize () const noexcept |
Opcode | getOpcode () const noexcept |
virtual bool | validate (const MgmtCommand &req) const noexcept |
std::string | toString () const noexcept override |
Public Member Functions inherited from direct_bt::MgmtMsg | |
MgmtMsg (const uint16_t opc, const uint16_t dev_id, const uint16_t param_size) | |
MgmtMsg (const uint8_t *buffer, const jau::nsize_t buffer_len) | |
virtual | ~MgmtMsg () |
uint64_t | getTimestamp () const noexcept |
jau::nsize_t | getTotalSize () const noexcept |
TROOctets & | getPDU () noexcept |
Return the underlying octets read only. More... | |
uint16_t | getIntOpcode () const noexcept |
uint16_t | getDevID () const noexcept |
uint16_t | getParamSize () const noexcept |
Static Public Member Functions | |
static std::string | getDisconnectReasonString (DisconnectReason mgmtReason) noexcept |
static HCIStatusCode | getHCIReason (DisconnectReason mgmtReason) noexcept |
BlueZ Kernel Mgmt has reduced information by HCIStatusCode -> DisconnectReason, now the inverse surely can't repair this loss. More... | |
static DisconnectReason | getDisconnectReason (HCIStatusCode hciReason) noexcept |
BlueZ Kernel Mgmt mapping of HCI disconnect reason, which reduces some information. More... | |
Static Public Member Functions inherited from direct_bt::MgmtEvent | |
static constexpr uint16_t | number (const Opcode rhs) noexcept |
static std::string | getOpcodeString (const Opcode opc) noexcept |
static MgmtEvent::Opcode | getOpcode (const uint8_t *buffer) |
static std::unique_ptr< MgmtEvent > | getSpecialized (const uint8_t *buffer, jau::nsize_t const buffer_size) noexcept |
Return a newly created specialized instance pointer to base class. More... | |
Static Public Member Functions inherited from direct_bt::MgmtMsg | |
static uint16_t | getIntOpcode (const uint8_t *buffer) |
static uint16_t | getDevID (const uint8_t *data) |
template<class T > | |
static T * | clone (const T &source) noexcept |
Clone template for convenience, based on derived class's copy-constructor. More... | |
Protected Member Functions | |
std::string | baseString () const noexcept override |
Protected Member Functions inherited from direct_bt::MgmtEvent | |
virtual std::string | valueString () const noexcept override |
Additional Inherited Members | |
Static Protected Member Functions inherited from direct_bt::MgmtEvent | |
static void | checkOpcode (const Opcode has, const Opcode min, const Opcode max) |
static void | checkOpcode (const Opcode has, const Opcode exp) |
Protected Attributes inherited from direct_bt::MgmtMsg | |
POctets | pdu |
uint64_t | ts_creation |
mgmt_addr_info { EUI48, uint8_t type }, uint8_t reason
Definition at line 1538 of file MgmtTypes.hpp.
|
strong |
Enumerator | |
---|---|
UNKNOWN | |
TIMEOUT | |
LOCAL_HOST | |
REMOTE | |
AUTH_FAILURE |
Definition at line 1541 of file MgmtTypes.hpp.
|
inline |
Definition at line 1580 of file MgmtTypes.hpp.
|
inline |
|
inlineoverrideprotectedvirtualnoexcept |
Reimplemented from direct_bt::MgmtEvent.
Definition at line 1569 of file MgmtTypes.hpp.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlineoverridevirtualnoexcept |
Reimplemented from direct_bt::MgmtEvent.
Definition at line 1613 of file MgmtTypes.hpp.
|
inlineoverridevirtualnoexcept |
Reimplemented from direct_bt::MgmtEvent.
Definition at line 1611 of file MgmtTypes.hpp.
|
inlineoverridevirtualnoexcept |
Reimplemented from direct_bt::MgmtEvent.
Definition at line 1612 of file MgmtTypes.hpp.
|
staticnoexcept |
BlueZ Kernel Mgmt mapping of HCI disconnect reason, which reduces some information.
Definition at line 510 of file MgmtTypes.cpp.
|
staticnoexcept |
Definition at line 496 of file MgmtTypes.cpp.
|
inlinenoexcept |
Returns the disconnected HCI connection handle, assuming creation occurred via HCIHandler.
Definition at line 1609 of file MgmtTypes.hpp.
|
inlinenoexcept |
Returns either the HCI reason if given, or the translated DisconnectReason.
Definition at line 1601 of file MgmtTypes.hpp.
|
staticnoexcept |
BlueZ Kernel Mgmt has reduced information by HCIStatusCode -> DisconnectReason, now the inverse surely can't repair this loss.
See getDisconnectReason(HCIStatusCode) below for the mentioned mapping.
Definition at line 530 of file MgmtTypes.cpp.
|
inlinenoexcept |