My Project
 All Classes Functions Variables Pages
BLEAddress.h
1 /*
2  * BLEAddress.h
3  *
4  * Created on: Jul 2, 2017
5  * Author: kolban
6  */
7 
8 #ifndef COMPONENTS_CPP_UTILS_BLEADDRESS_H_
9 #define COMPONENTS_CPP_UTILS_BLEADDRESS_H_
10 #include "sdkconfig.h"
11 #if defined(CONFIG_BT_ENABLED)
12 #include <esp_gap_ble_api.h> // ESP32 BLE
13 #include <string>
14 
15 
21 class BLEAddress {
22 public:
23  BLEAddress(esp_bd_addr_t address);
24  BLEAddress(std::string stringAddress);
25  bool equals(BLEAddress otherAddress);
26  esp_bd_addr_t* getNative();
27  std::string toString();
28 
29 private:
30  esp_bd_addr_t m_address;
31 };
32 
33 #endif /* CONFIG_BT_ENABLED */
34 #endif /* COMPONENTS_CPP_UTILS_BLEADDRESS_H_ */