rename add_json()

This commit is contained in:
proddy
2021-07-29 16:52:33 +02:00
parent a8382dd6ce
commit 8f438e8045
4 changed files with 7 additions and 7 deletions

View File

@@ -41,12 +41,12 @@ void DallasSensor::start() {
bus_.begin(dallas_gpio_);
#endif
// API calls
Command::add_returns_json(
Command::add_json(
EMSdevice::DeviceType::DALLASSENSOR,
F_(info),
[&](const char * value, const int8_t id, JsonObject & json) { return command_info(value, id, json); },
F_(info_cmd));
Command::add_returns_json(
Command::add_json(
EMSdevice::DeviceType::DALLASSENSOR,
F_(commands),
[&](const char * value, const int8_t id, JsonObject & json) { return command_commands(value, id, json); },