--- a/main/config.h Sat Apr 15 13:29:40 2023 +0200 +++ b/main/config.h Sun Apr 16 12:27:12 2023 +0200 @@ -34,6 +34,13 @@ #include "esp_wifi.h" #include "esp_event.h" #include "esp_netif.h" +#ifdef CONFIG_ENABLE_BLE_GATT +#include "esp_bt.h" +#include "esp_gap_ble_api.h" +#include "esp_gatts_api.h" +#include "esp_bt_defs.h" +#include "esp_bt_main.h" +#endif #include "nvs_flash.h" #include "lwip/err.h" #include "lwip/sys.h" @@ -53,6 +60,9 @@ #include "task_bmp280.h" #include "task_ina219.h" #include "task_apds9930.h" +#ifdef CONFIG_ENABLE_BLE_GATT +#include "task_ble.h" +#endif #include "task_wifi.h" #include "task_mqtt.h" #include "task_out.h"