Singleton container of all the BLE Gatt Clients.
More...
#include <BLEGattClient.hxx>
|
| std::vector< std::unique_ptr< BLEGattClient > > | clients_ |
| | All the BLE Gatt clients managed by the container.
|
| |
Singleton container of all the BLE Gatt Clients.
Definition at line 110 of file BLEGattClient.hxx.
◆ BLEGattClients()
| openlcb::BLEGattClients::BLEGattClients |
( |
| ) |
|
|
inline |
◆ disconnect_callback()
| void openlcb::BLEGattClients::disconnect_callback |
( |
ble::Connection * |
conn | ) |
|
|
inlineprivate |
Callback for when a connection disconnect occurs.
- Parameters
-
| conn | BLE device connection |
Remove any clients using the given connection from the container.
Definition at line 178 of file BLEGattClient.hxx.
◆ find_client_by_in()
- Returns
- the first client for the given connection ID.
Definition at line 151 of file BLEGattClient.hxx.
◆ find_client_by_out()
- Returns
- the first client for the given connection ID.
Definition at line 136 of file BLEGattClient.hxx.
◆ for_each_call()
| void openlcb::BLEGattClients::for_each_call |
( |
std::function< void(BLEGattClient *)> |
callback | ) |
|
|
inline |
Invoke a callback method on each of the registered clients.
- Parameters
-
| callback | callback to invoke. |
Definition at line 167 of file BLEGattClient.hxx.
◆ register_client()
| BLEGattClient * openlcb::BLEGattClients::register_client |
( |
ble::Connection * |
conn, |
|
|
ble::Defs::AttHandle |
out_bound, |
|
|
ble::Defs::AttHandle |
in_bound |
|
) |
| |
|
inline |
Register an active client.
- Parameters
-
| conn | BLE device connection |
| out_bound | handle to out bound data characteristic |
| in_bound | handle to in bound data characteristic |
- Returns
- newly created client instance. Ownership is retained, and this object will be deleted at an unspecified time.
Definition at line 126 of file BLEGattClient.hxx.
◆ clients_
| std::vector<std::unique_ptr<BLEGattClient> > openlcb::BLEGattClients::clients_ |
|
private |
All the BLE Gatt clients managed by the container.
Definition at line 193 of file BLEGattClient.hxx.
The documentation for this class was generated from the following file: