add mqtt subscribe settings, thermostat switchtime, boiler heatingsources

This commit is contained in:
MichaelDvP
2021-03-22 17:12:09 +01:00
parent 71dfc0e1eb
commit 03e43ba839
14 changed files with 249 additions and 83 deletions

View File

@@ -85,7 +85,7 @@ bool Command::call(const uint8_t device_type, const char * cmd, const char * val
}
// add a command to the list, which does not return json
void Command::add(const uint8_t device_type, const __FlashStringHelper * cmd, cmdfunction_p cb) {
void Command::add(const uint8_t device_type, const __FlashStringHelper * cmd, cmdfunction_p cb, uint8_t flag) {
// if the command already exists for that device type don't add it
if (find_command(device_type, uuid::read_flash_string(cmd).c_str()) != nullptr) {
return;
@@ -95,7 +95,7 @@ void Command::add(const uint8_t device_type, const __FlashStringHelper * cmd, cm
// see if we need to subscribe
if (Mqtt::enabled()) {
Mqtt::register_command(device_type, cmd, cb);
Mqtt::register_command(device_type, cmd, cb, flag);
}
}