add missing subscribes

This commit is contained in:
MichaelDvP
2023-08-31 08:07:06 +02:00
parent b7611c67bb
commit 7e45c89fcd
2 changed files with 2 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ WebSchedulerService::WebSchedulerService(AsyncWebServer * server, FS * fs, Secur
void WebSchedulerService::begin() {
_fsPersistence.readFromFS();
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