|
|
@ -4,7 +4,7 @@ using namespace iflytop; |
|
|
|
void DisinfectionCmdImpl::setDehumidifyBeforeDisinfectionEnable(json& cmd, json& receipt) { |
|
|
|
auto dfs = m_disinfectionCtrlService->getDisinfectionService(); |
|
|
|
|
|
|
|
bool enable = cmd["enable"]; |
|
|
|
bool enable = cmd["params"]["enable"]; |
|
|
|
logger->info("setDehumidifyBeforeDisinfectionEnable {}", enable); |
|
|
|
|
|
|
|
dfs->setEnableBfDinftDehumidification(enable); |
|
|
@ -13,7 +13,7 @@ void DisinfectionCmdImpl::setDehumidifyBeforeDisinfectionEnable(json& cmd, json& |
|
|
|
void DisinfectionCmdImpl::setDehumidifyAfterDisinfectionEnable(json& cmd, json& receipt) { |
|
|
|
auto dfs = m_disinfectionCtrlService->getDisinfectionService(); |
|
|
|
|
|
|
|
bool enable = cmd["enable"]; |
|
|
|
bool enable = cmd["params"]["enable"]; |
|
|
|
logger->info("setDehumidifyAfterDisinfectionEnable {}", enable); |
|
|
|
|
|
|
|
dfs->setEnableAfDinftDehumidification(enable); |
|
|
@ -22,7 +22,7 @@ void DisinfectionCmdImpl::setDehumidifyAfterDisinfectionEnable(json& cmd, json& |
|
|
|
void DisinfectionCmdImpl::setDegradeAfterDisinfectionEnable(json& cmd, json& receipt) { |
|
|
|
auto dfs = m_disinfectionCtrlService->getDisinfectionService(); |
|
|
|
|
|
|
|
bool enable = cmd["enable"]; |
|
|
|
bool enable = cmd["params"]["enable"]; |
|
|
|
logger->info("setDegradeAfterDisinfectionEnable {}", enable); |
|
|
|
dfs->setEnableDegradation(enable); |
|
|
|
return; |
|
|
@ -30,7 +30,7 @@ void DisinfectionCmdImpl::setDegradeAfterDisinfectionEnable(json& cmd, json& rec |
|
|
|
void DisinfectionCmdImpl::setDehumidifyBeforeDisinfectionThreshold(json& cmd, json& receipt) { |
|
|
|
auto dfs = m_disinfectionCtrlService->getDisinfectionService(); |
|
|
|
|
|
|
|
int32_t value = jsonGet<int>(cmd["value"]); |
|
|
|
int32_t value = jsonGet<int>(cmd["params"]["value"]); |
|
|
|
logger->info("setDehumidifyBeforeDisinfectionThreshold {}", value); |
|
|
|
|
|
|
|
dfs->setBfDinftDehumidificationTargetVal(value); |
|
|
@ -39,7 +39,7 @@ void DisinfectionCmdImpl::setDehumidifyBeforeDisinfectionThreshold(json& cmd, js |
|
|
|
void DisinfectionCmdImpl::setDehumidifyAfterDisinfectionThreshold(json& cmd, json& receipt) { |
|
|
|
auto dfs = m_disinfectionCtrlService->getDisinfectionService(); |
|
|
|
|
|
|
|
int32_t value = jsonGet<int>(cmd["value"]); |
|
|
|
int32_t value = jsonGet<int>(cmd["params"]["value"]); |
|
|
|
logger->info("setDehumidifyAfterDisinfectionThreshold {}", value); |
|
|
|
|
|
|
|
dfs->setAfDinftDehumidificationTargetVal(value); |
|
|
|