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(); }