early BLE init
This commit is contained in:
parent
2b7260135e
commit
aa93a71fa1
10
main/App.cpp
10
main/App.cpp
@ -41,6 +41,11 @@ 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();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user