Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
Static Public Member Functions | Public Attributes | List of all members
direct_bt::BTGattEnv Class Reference

GATT Singleton runtime environment properties. More...

#include <BTGattHandler.hpp>

Inheritance diagram for direct_bt::BTGattEnv:
Collaboration diagram for direct_bt::BTGattEnv:

Static Public Member Functions

static BTGattEnvget () 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...
 

Detailed Description

GATT Singleton runtime environment properties.

Also see DBTEnv::getExplodingProperties(const std::string & prefixDomain).

Definition at line 76 of file BTGattHandler.hpp.

Member Function Documentation

◆ get()

static BTGattEnv & direct_bt::BTGattEnv::get ( )
inlinestaticnoexcept

Definition at line 132 of file BTGattHandler.hpp.

Member Data Documentation

◆ GATT_READ_COMMAND_REPLY_TIMEOUT

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.

◆ GATT_WRITE_COMMAND_REPLY_TIMEOUT

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.

◆ GATT_INITIAL_COMMAND_REPLY_TIMEOUT

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.

◆ ATTPDU_RING_CAPACITY

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.

◆ DEBUG_DATA

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.


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