early BLE init

This commit is contained in:
Miro Zmrzli 2024-07-21 20:13:33 -07:00
parent 2b7260135e
commit aa93a71fa1

View File

@ -40,7 +40,12 @@ void App::init()
m_led = new Led(LED_PIN); m_led = new Led(LED_PIN);
m_wifi = new Wifi(); m_wifi = new Wifi();
m_commandProcessor = new CommandProcessor(*this);
m_ble_service = new BleService(*this);
m_ble_service->start();
bool needs_provision = true; bool needs_provision = true;
if(SETTINGS.wifi.num > 0) if(SETTINGS.wifi.num > 0)
@ -86,14 +91,9 @@ void App::init()
// m_led->setPulse(255, 0, 255); // m_led->setPulse(255, 0, 255);
m_led->setColor(0, 0, 0); m_led->setColor(0, 0, 0);
m_commandProcessor = new CommandProcessor(*this);
m_mqtt_service = new MqttService(*this); m_mqtt_service = new MqttService(*this);
m_mqtt_service->start(); m_mqtt_service->start();
m_ble_service = new BleService(*this);
m_ble_service->start();
m_sensor_service = new SensorService(*this); m_sensor_service = new SensorService(*this);
m_sensor_service->start(); m_sensor_service->start();
} }