Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
|
GATT Singleton runtime environment properties. More...
#include <BTGattHandler.hpp>
Static Public Member Functions | |
static BTGattEnv & | get () noexcept |
Static Public Member Functions inherited from jau::root_environment | |
static bool | is_terminating () noexcept |
Returns true if program is terminating as detected via atexit() callback or set_terminating() has been called. More... | |
static void | set_terminating () noexcept |
Optional path to signal early termination, i.e. More... | |
Public Attributes | |
const int32_t | ATTPDU_RING_CAPACITY |
Medium ringbuffer capacity, defaults to 128 messages. More... | |
const bool | DEBUG_DATA |
Debug all GATT Data communication. More... | |
const jau::fraction_i64 | GATT_INITIAL_COMMAND_REPLY_TIMEOUT |
Timeout for l2cap initial command reply, defaults to 2500ms (2000ms minimum). More... | |
const jau::fraction_i64 | GATT_READ_COMMAND_REPLY_TIMEOUT |
Timeout for GATT read command replies, defaults to 550ms minimum, where 500ms is the minimum supervising timeout HCIConstInt::LE_CONN_MIN_TIMEOUT_MS. More... | |
const jau::fraction_i64 | GATT_WRITE_COMMAND_REPLY_TIMEOUT |
Timeout for GATT write command replies, defaults to 550ms minimum, where 500ms is the minimum supervising timeout HCIConstInt::LE_CONN_MIN_TIMEOUT_MS. More... | |
GATT Singleton runtime environment properties.
Also see DBTEnv::getExplodingProperties(const std::string & prefixDomain)
.
Definition at line 76 of file BTGattHandler.hpp.
|
inlinestaticnoexcept |
Definition at line 132 of file BTGattHandler.hpp.
const jau::fraction_i64 direct_bt::BTGattEnv::GATT_READ_COMMAND_REPLY_TIMEOUT |
Timeout for GATT read command replies, defaults to 550ms minimum, where 500ms is the minimum supervising timeout HCIConstInt::LE_CONN_MIN_TIMEOUT_MS.
Environment variable is 'direct_bt.gatt.cmd.read.timeout'.
Actually used timeout will be max(connection_supervisor_timeout + 50ms, GATT_READ_COMMAND_REPLY_TIMEOUT)
, additional 50ms to allow L2CAP timeout hit first.
Definition at line 92 of file BTGattHandler.hpp.
const jau::fraction_i64 direct_bt::BTGattEnv::GATT_WRITE_COMMAND_REPLY_TIMEOUT |
Timeout for GATT write command replies, defaults to 550ms minimum, where 500ms is the minimum supervising timeout HCIConstInt::LE_CONN_MIN_TIMEOUT_MS.
Environment variable is 'direct_bt.gatt.cmd.write.timeout'.
Actually used timeout will be max(connection_supervisor_timeout + 50ms, GATT_WRITE_COMMAND_REPLY_TIMEOUT)
, additional 50ms to allow L2CAP timeout hit first.
Definition at line 103 of file BTGattHandler.hpp.
const jau::fraction_i64 direct_bt::BTGattEnv::GATT_INITIAL_COMMAND_REPLY_TIMEOUT |
Timeout for l2cap initial command reply, defaults to 2500ms (2000ms minimum).
Environment variable is 'direct_bt.gatt.cmd.init.timeout'.
Actually used timeout will be min(10000, max(2 * connection_supervisor_timeout, GATT_INITIAL_COMMAND_REPLY_TIMEOUT))
, double of connection_supervisor_timeout, to make sure L2CAP timeout hits first.
Definition at line 113 of file BTGattHandler.hpp.
const int32_t direct_bt::BTGattEnv::ATTPDU_RING_CAPACITY |
Medium ringbuffer capacity, defaults to 128 messages.
Environment variable is 'direct_bt.gatt.ringsize'.
Definition at line 121 of file BTGattHandler.hpp.
const bool direct_bt::BTGattEnv::DEBUG_DATA |
Debug all GATT Data communication.
Environment variable is 'direct_bt.debug.gatt.data'.
Definition at line 129 of file BTGattHandler.hpp.