1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-19 08:15:49 +00:00

[esp32_ble] Conditionally compile BLE advertising to reduce flash usage (#10099)

This commit is contained in:
J. Nick Koston
2025-08-06 14:29:24 -10:00
committed by GitHub
parent 325ec0a0ae
commit ee1d4f27ef
8 changed files with 38 additions and 7 deletions

View File

@@ -1,10 +1,13 @@
#pragma once
#include "esphome/core/defines.h"
#include <array>
#include <functional>
#include <vector>
#ifdef USE_ESP32
#ifdef USE_ESP32_BLE_ADVERTISING
#include <esp_bt.h>
#include <esp_gap_ble_api.h>
@@ -56,4 +59,5 @@ class BLEAdvertising {
} // namespace esphome::esp32_ble
#endif
#endif // USE_ESP32_BLE_ADVERTISING
#endif // USE_ESP32