mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
add ubadevices, which is 1st telegram sent
This commit is contained in:
@@ -593,9 +593,11 @@ std::string EMSESP::pretty_telegram(std::shared_ptr<const Telegram> telegram) {
|
|||||||
dest_name = device_tostring(dest);
|
dest_name = device_tostring(dest);
|
||||||
}
|
}
|
||||||
|
|
||||||
// check for global/common types like Version
|
// check for global/common types like Version & UBADevices
|
||||||
if (telegram->type_id == EMSdevice::EMS_TYPE_VERSION) {
|
if (telegram->type_id == EMSdevice::EMS_TYPE_VERSION) {
|
||||||
type_name = read_flash_string(F("Version"));
|
type_name = read_flash_string(F("Version"));
|
||||||
|
} else if (telegram->type_id == EMSdevice::EMS_TYPE_UBADevices) {
|
||||||
|
type_name = read_flash_string(F("UBADevices"));
|
||||||
}
|
}
|
||||||
|
|
||||||
// if we don't know the type show
|
// if we don't know the type show
|
||||||
@@ -1112,12 +1114,11 @@ void EMSESP::start() {
|
|||||||
console_.start(); // telnet and serial console
|
console_.start(); // telnet and serial console
|
||||||
|
|
||||||
webSettingsService.begin(); // load EMS-ESP specific settings, like GPIO configurations
|
webSettingsService.begin(); // load EMS-ESP specific settings, like GPIO configurations
|
||||||
|
mqtt_.start(); // mqtt init
|
||||||
mqtt_.start(); // mqtt init
|
system_.start(heap_start); // starts commands, led, adc, button, network, syslog & uart
|
||||||
system_.start(heap_start); // starts syslog, uart, sets version, initializes LED
|
shower_.start(); // initialize shower timer and shower alert
|
||||||
shower_.start(); // initialize shower timer and shower alert
|
dallassensor_.start(); // dallas external sensors
|
||||||
dallassensor_.start(); // dallas external sensors
|
webServer.begin(); // start web server
|
||||||
webServer.begin(); // start web server
|
|
||||||
|
|
||||||
emsdevices.reserve(5); // reserve space for initially 5 devices to avoid mem frag issues
|
emsdevices.reserve(5); // reserve space for initially 5 devices to avoid mem frag issues
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user