提交 44727287 authored 作者: tobyfan1980's avatar tobyfan1980

evcamera: change default upload addr

上级 a692adde
...@@ -82,7 +82,7 @@ const string consts::pub_topic_lastwill = "/evcamera/v1.0/lastwill/"; ...@@ -82,7 +82,7 @@ const string consts::pub_topic_lastwill = "/evcamera/v1.0/lastwill/";
const string consts::pub_topic_report = "/evcamera/v1.0/report"; const string consts::pub_topic_report = "/evcamera/v1.0/report";
const string consts::mqtt_url = "tcp://admin:vJ3zHqWrHbrqxVMT@evcloudsvc.ilabservice.cloud:11883"; const string consts::mqtt_url = "tcp://admin:vJ3zHqWrHbrqxVMT@evcloudsvc.ilabservice.cloud:11883";
const string consts::vgw_addr = "tcp://vgw.ilabservice.cloud:7123"; const string consts::vgw_addr = "tcp://vgw.ilabservice.cloud:7123";
const string consts::upload_addr = "tcp://evcloudsvc.ilabservice.cloud:10009"; const string consts::upload_addr = "tcp://evcloudsvc.ilabservice.cloud:7788";
const string consts::strPubUrl = "inproc://frame"; const string consts::strPubUrl = "inproc://frame";
consts &consts::self() consts &consts::self()
......
...@@ -831,6 +831,7 @@ void handle_mqtt_req(MqttHelper *hlp, const void * const data, int len, string t ...@@ -831,6 +831,7 @@ void handle_mqtt_req(MqttHelper *hlp, const void * const data, int len, string t
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");
this_thread::sleep_for(chrono::milliseconds(1000));
LibXmMaQue_System_reboot(); LibXmMaQue_System_reboot();
} else { } else {
MqttMgr::report_response_args(gMqttClient, consts::pub_topic_response + rid, 0, "config change apply without reboot", cmd, rid, patch); MqttMgr::report_response_args(gMqttClient, consts::pub_topic_response + rid, 0, "config change apply without reboot", cmd, rid, patch);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论