/* * BLEAdvertising.h * * Created on: Jun 21, 2017 * Author: kolban */ #ifndef COMPONENTS_CPP_UTILS_BLEADVERTISING_H_ #define COMPONENTS_CPP_UTILS_BLEADVERTISING_H_ #include "sdkconfig.h" #if defined(CONFIG_BT_ENABLED) #include #include "BLEUUID.h" /** * @brief Perform and manage %BLE advertising. * * A %BLE server will want to perform advertising in order to make itself known to %BLE clients. */ class BLEAdvertising { public: BLEAdvertising(); void start(); void stop(); void setAppearance(uint16_t appearance); void setServiceUUID(const char* serviceUUID); void setServiceUUID(BLEUUID serviceUUID); private: esp_ble_adv_data_t m_advData; esp_ble_adv_params_t m_advParams; BLEUUID m_serviceUUID; }; #endif /* CONFIG_BT_ENABLED */ #endif /* COMPONENTS_CPP_UTILS_BLEADVERTISING_H_ */