From aa93a71fa19b4af4f9e15b4349f2bb599382ec79 Mon Sep 17 00:00:00 2001 From: MiroZ Date: Sun, 21 Jul 2024 20:13:33 -0700 Subject: [PATCH] early BLE init --- main/App.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main/App.cpp b/main/App.cpp index 8198824..efeb3dd 100644 --- a/main/App.cpp +++ b/main/App.cpp @@ -40,7 +40,12 @@ void App::init() m_led = new Led(LED_PIN); m_wifi = new Wifi(); - + + m_commandProcessor = new CommandProcessor(*this); + + m_ble_service = new BleService(*this); + m_ble_service->start(); + bool needs_provision = true; if(SETTINGS.wifi.num > 0) @@ -86,14 +91,9 @@ void App::init() // m_led->setPulse(255, 0, 255); m_led->setColor(0, 0, 0); - m_commandProcessor = new CommandProcessor(*this); - m_mqtt_service = new MqttService(*this); m_mqtt_service->start(); - m_ble_service = new BleService(*this); - m_ble_service->start(); - m_sensor_service = new SensorService(*this); m_sensor_service->start(); }