|
@ -47,11 +47,11 @@ void DisinfectionCtrlServiceExt::initialize() { |
|
|
REG_EXTFN_VOID(stop, void()); |
|
|
REG_EXTFN_VOID(stop, void()); |
|
|
REG_EXTFN_VOID(getState, void()); |
|
|
REG_EXTFN_VOID(getState, void()); |
|
|
REG_EXTFN_VOID(getRealtimeConfig, void()); |
|
|
REG_EXTFN_VOID(getRealtimeConfig, void()); |
|
|
REG_EXTFN(setRealtimeConfig, void(string, string), key, val); |
|
|
|
|
|
|
|
|
REG_EXTFN(setRealtimeConfig, void(SettingId, string), key, val); |
|
|
|
|
|
REG_EXTFN(updateTargetLogLevel, void(float), loglevel); |
|
|
REG_EXTFN_VOID(getServiceConfig, void()); |
|
|
REG_EXTFN_VOID(getServiceConfig, void()); |
|
|
REG_EXTFN_VOID(startStateReport, void()); |
|
|
REG_EXTFN_VOID(startStateReport, void()); |
|
|
REG_EXTFN_VOID(stopStateReport, void()); |
|
|
REG_EXTFN_VOID(stopStateReport, void()); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void DisinfectionCtrlServiceExt::start(shared_ptr<MsgProcessContext> cxt, string loglevel) { |
|
|
void DisinfectionCtrlServiceExt::start(shared_ptr<MsgProcessContext> cxt, string loglevel) { |
|
@ -76,6 +76,9 @@ void DisinfectionCtrlServiceExt::getRealtimeConfig(shared_ptr<MsgProcessContext> |
|
|
rely[cfg.first] = cfg.second; |
|
|
rely[cfg.first] = cfg.second; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void DisinfectionCtrlServiceExt::updateTargetLogLevel(shared_ptr<MsgProcessContext> cxt, float loglevel) { dcs->updateTargetLogLevel(loglevel); } |
|
|
|
|
|
|
|
|
void DisinfectionCtrlServiceExt::setRealtimeConfig(shared_ptr<MsgProcessContext> cxt, string key, string val) { |
|
|
void DisinfectionCtrlServiceExt::setRealtimeConfig(shared_ptr<MsgProcessContext> cxt, string key, string val) { |
|
|
logger->info("setRealtimeConfig key:{} val:{}", key, val); |
|
|
logger->info("setRealtimeConfig key:{} val:{}", key, val); |
|
|
dcs->getRealtimeCfg()[key] = val; |
|
|
dcs->getRealtimeCfg()[key] = val; |
|
|