Stop unnecessary services before TFT upload with pre-built versions

This commit is contained in:
Edward Firmo
2024-04-18 12:35:20 +02:00
parent 6276551560
commit a5092a5939
3 changed files with 27 additions and 0 deletions

View File

@@ -224,6 +224,18 @@ script:
ESP_LOGD(TAG, " Upload URL: %s", url.c_str());
disp1->set_tft_url(url.c_str());
#ifdef USE_IMPROV
ESP_LOGD(TAG, "Stop Improv BLE");
ble_improv->dump_config();
ble_improv->stop();
ble_improv->dump_config();
#endif
#ifdef USE_CAPTIVE_PORTAL
ESP_LOGD(TAG, "Stop Captive Portal");
ap_captive_portal->dump_config();
ap_captive_portal->stop();
ap_captive_portal->dump_config();
#endif
#ifdef USE_ESP32_BLE_CLIENT
ble_tracker->dump_config();
ESP_LOGD(TAG, "Disable BLE");

View File

@@ -2300,12 +2300,18 @@ script:
#ifdef USE_CAPTIVE_PORTAL
ESP_LOGCONFIG(TAG, " - Captive portal");
#endif
#ifdef USE_ESP32_BLE_SERVER
ESP_LOGCONFIG(TAG, " - BLE server");
#endif
#ifdef USE_ESP32_BLE_CLIENT
ESP_LOGCONFIG(TAG, " - BLE tracker");
#endif
#ifdef USE_BLUETOOTH_PROXY
ESP_LOGCONFIG(TAG, " - Bluetooth proxy");
#endif
#ifdef USE_IMPROV
ESP_LOGCONFIG(TAG, " - Improv (BLE)");
#endif
#ifdef USE_WEBSERVER
ESP_LOGCONFIG(TAG, " - Web server");
#endif

View File

@@ -57,14 +57,22 @@ button:
ESP_LOGE(TAG, "Firmware update failed!");
captive_portal:
id: ap_captive_portal
dashboard_import:
package_import_url: github://Blackymas/NSPanel_HA_Blueprint/prebuilt/nspanel_esphome_prebuilt.yaml@main
import_full_config: false
esp32_ble:
id: ble
esp32_improv:
id: ble_improv
authorizer: none
esp32_ble_server:
id: ble_server
esphome:
name_add_mac_suffix: true
project:
@@ -75,6 +83,7 @@ esphome:
- -D NSPANEL_HA_BLUEPRINT_PREBUILT
improv_serial:
id: serial_improv
logger:
baud_rate: 115200