mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
add missing subscribes
This commit is contained in:
@@ -31,6 +31,7 @@ WebEntityService::WebEntityService(AsyncWebServer * server, FS * fs, SecurityMan
|
|||||||
void WebEntityService::begin() {
|
void WebEntityService::begin() {
|
||||||
_fsPersistence.readFromFS();
|
_fsPersistence.readFromFS();
|
||||||
EMSESP::logger().info("Starting Custom entity service");
|
EMSESP::logger().info("Starting Custom entity service");
|
||||||
|
Mqtt::subscribe(EMSdevice::DeviceType::CUSTOM, "custom/#", nullptr); // use empty function callback
|
||||||
}
|
}
|
||||||
|
|
||||||
// this creates the entity file, saving it to the FS
|
// this creates the entity file, saving it to the FS
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ WebSchedulerService::WebSchedulerService(AsyncWebServer * server, FS * fs, Secur
|
|||||||
void WebSchedulerService::begin() {
|
void WebSchedulerService::begin() {
|
||||||
_fsPersistence.readFromFS();
|
_fsPersistence.readFromFS();
|
||||||
EMSESP::logger().info("Starting Scheduler service");
|
EMSESP::logger().info("Starting Scheduler service");
|
||||||
|
Mqtt::subscribe(EMSdevice::DeviceType::SCHEDULER, "scheduler/#", nullptr); // use empty function callback
|
||||||
}
|
}
|
||||||
|
|
||||||
// this creates the scheduler file, saving it to the FS
|
// this creates the scheduler file, saving it to the FS
|
||||||
|
|||||||
Reference in New Issue
Block a user