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