提交 a692adde authored 作者: blu's avatar blu

evcamera: apply_config revise

上级 f8414afb
...@@ -827,6 +827,7 @@ void handle_mqtt_req(MqttHelper *hlp, const void * const data, int len, string t ...@@ -827,6 +827,7 @@ void handle_mqtt_req(MqttHelper *hlp, const void * const data, int len, string t
else { else {
/// TODO: using json diff to apply change without reboot /// TODO: using json diff to apply change without reboot
save_configuration(data); save_configuration(data);
load_configuration(gJsonConfig);
if(needReboot) { if(needReboot) {
MqttMgr::report_response_args(gMqttClient, consts::pub_topic_response + rid, 0, "rebooting to apply new config", cmd, rid, data); MqttMgr::report_response_args(gMqttClient, consts::pub_topic_response + rid, 0, "rebooting to apply new config", cmd, rid, data);
rlogger->info("rebooting to apply new configuration"); rlogger->info("rebooting to apply new configuration");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论