Metadata for a BLE Gatt Client instance.
More...
#include <BLEGattClient.hxx>
|
| ble::Connection * | conn_ |
| | BLE device connection.
|
| |
| ble::Defs::AttHandle | outBound_ |
| | handle to out bound data characteristic
|
| |
| ble::Defs::AttHandle | inBound_ |
| | handle to in bound data characteristic
|
| |
| BLEProtocolEnginePtr | protocol_ |
| | This object implements the protocol over this connection.
|
| |
Metadata for a BLE Gatt Client instance.
Definition at line 41 of file BLEGattClient.hxx.
◆ ~BLEGattClient()
| openlcb::BLEGattClient::~BLEGattClient |
( |
| ) |
|
|
inline |
◆ BLEGattClient()
| openlcb::BLEGattClient::BLEGattClient |
( |
ble::Connection * |
conn, |
|
|
ble::Defs::AttHandle |
out_bound, |
|
|
ble::Defs::AttHandle |
in_bound |
|
) |
| |
|
inlineprivate |
Constructor.
- Parameters
-
| conn | BLE device connection |
| out_bound | handle to out bound data characteristic |
| in_bound | handle to in bound data characteristic |
Definition at line 91 of file BLEGattClient.hxx.
◆ connection()
Get the client connection.
- Returns
- client connection
Definition at line 65 of file BLEGattClient.hxx.
◆ get_in_bound()
| ble::Defs::AttHandle openlcb::BLEGattClient::get_in_bound |
( |
| ) |
|
|
inline |
Get the in bound data characteristic handle.
- Returns
- in bound data characteristic handle
Definition at line 58 of file BLEGattClient.hxx.
◆ get_out_bound()
| ble::Defs::AttHandle openlcb::BLEGattClient::get_out_bound |
( |
| ) |
|
|
inline |
Get the out bound data characteristic handle.
- Returns
- out bound data characteristic handle
Definition at line 51 of file BLEGattClient.hxx.
◆ protocol_engine()
◆ set_protocol_engine()
| void openlcb::BLEGattClient::set_protocol_engine |
( |
BLEProtocolEnginePtr |
protocol | ) |
|
|
inline |
Save a protocol engine into this object's ownership.
The new protocol engine will be deleted when this client is disconnected. One connection can set only one protocol engine. Any previous one will be deleted in this call.
- Parameters
-
| protocol | the newly created protocol engine. Will take ownership and delete it via abandon_and_delete. |
Definition at line 76 of file BLEGattClient.hxx.
◆ BLEGattClients
◆ conn_
◆ inBound_
| ble::Defs::AttHandle openlcb::BLEGattClient::inBound_ |
|
private |
◆ outBound_
| ble::Defs::AttHandle openlcb::BLEGattClient::outBound_ |
|
private |
◆ protocol_
| BLEProtocolEnginePtr openlcb::BLEGattClient::protocol_ |
|
private |
This object implements the protocol over this connection.
It is used only for onwership and notifying it upon disconnect.
Definition at line 103 of file BLEGattClient.hxx.
The documentation for this class was generated from the following file: