blob: c3647965c75d14e56456fb5d95ad1a81263e398e (
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
35
36
37
|
#ifndef COMPONENTS_CPP_UTILS_BLEUUID_H_ #define COMPONENTS_CPP_UTILS_BLEUUID_H_ #include "sdkconfig.h" #if defined(CONFIG_BT_ENABLED) #include <esp_gatt_defs.h> #include <string>
class BLEUUID { public: BLEUUID(std::string uuid); BLEUUID(uint16_t uuid); BLEUUID(uint32_t uuid); BLEUUID(esp_bt_uuid_t uuid); BLEUUID(uint8_t* pData, size_t size, bool msbFirst); BLEUUID(esp_gatt_srvc_id_t srcvId); BLEUUID(); bool equals(BLEUUID uuid); esp_bt_uuid_t* getNative(); BLEUUID to128(); std::string toString(); private: esp_bt_uuid_t m_uuid; bool m_valueSet; }; #endif #endif
|