blob: 7eff4da4bb624185410f474b1632a1121cd99eea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#ifndef COMPONENTS_CPP_UTILS_BLEADDRESS_H_ #define COMPONENTS_CPP_UTILS_BLEADDRESS_H_ #include "sdkconfig.h" #if defined(CONFIG_BT_ENABLED) #include <esp_gap_ble_api.h> #include <string>
class BLEAddress { public: BLEAddress(esp_bd_addr_t address); BLEAddress(std::string stringAddress); bool equals(BLEAddress otherAddress); esp_bd_addr_t* getNative(); std::string toString(); private: esp_bd_addr_t m_address; }; #endif #endif
|