ESPHome
2024.10.2
esphome
esphome
components
esp32_ble_client
ble_service.h
Go to the documentation of this file.
1
#pragma once
2
3
#ifdef USE_ESP32
4
5
#include "
esphome/components/esp32_ble_tracker/esp32_ble_tracker.h
"
6
7
#include "ble_characteristic.h"
8
9
#include <vector>
10
11
namespace
esphome
{
12
namespace
esp32_ble_client {
13
14
namespace
espbt
=
esphome::esp32_ble_tracker
;
15
16
class
BLEClientBase;
17
18
class
BLEService
{
19
public
:
20
~BLEService
();
21
bool
parsed
=
false
;
22
espbt::ESPBTUUID
uuid
;
23
uint16_t
start_handle
;
24
uint16_t
end_handle
;
25
std::vector<BLECharacteristic *>
characteristics
;
26
BLEClientBase
*
client
;
27
void
parse_characteristics
();
28
void
release_characteristics
();
29
BLECharacteristic
*
get_characteristic
(
espbt::ESPBTUUID
uuid);
30
BLECharacteristic
*
get_characteristic
(uint16_t uuid);
31
};
32
33
}
// namespace esp32_ble_client
34
}
// namespace esphome
35
36
#endif // USE_ESP32
esphome::esp32_ble_client::BLEService::parsed
bool parsed
Definition:
ble_service.h:21
esphome::esp32_ble_client::BLEService::get_characteristic
BLECharacteristic * get_characteristic(espbt::ESPBTUUID uuid)
Definition:
ble_service.cpp:13
esp32_ble_tracker.h
esphome::esp32_ble::ESPBTUUID
Definition:
ble_uuid.h:14
esphome::esp32_ble_client::BLEService::characteristics
std::vector< BLECharacteristic * > characteristics
Definition:
ble_service.h:25
esphome::esp32_ble_client::BLEClientBase
Definition:
ble_client_base.h:24
esphome::esp32_ble_client::BLECharacteristic
Definition:
ble_characteristic.h:18
esphome::esp32_ble_client::BLEService::start_handle
uint16_t start_handle
Definition:
ble_service.h:23
esphome::esp32_ble_client::BLEService::end_handle
uint16_t end_handle
Definition:
ble_service.h:24
esphome::esp32_ble_tracker
Definition:
automation.h:9
esphome::esp32_ble_client::BLEService::parse_characteristics
void parse_characteristics()
Definition:
ble_service.cpp:39
esphome::esp32_ble_client::BLEService::~BLEService
~BLEService()
Definition:
ble_service.cpp:27
esphome::esp32_ble_client::BLEService::release_characteristics
void release_characteristics()
Definition:
ble_service.cpp:32
esphome::esp32_ble_client::BLEService
Definition:
ble_service.h:18
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
esphome::esp32_ble_client::BLEService::uuid
espbt::ESPBTUUID uuid
Definition:
ble_service.h:22
esphome::esp32_ble_client::BLEService::client
BLEClientBase * client
Definition:
ble_service.h:26
Generated by
1.8.13