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

big refacting of communitation architect

上级 0b8de939
{ {
"data":{ "data":{
"T6L5N3KN":{ "W5TA2ZE6":{
"addr":"127.0.0.1", "addr":"127.0.0.1",
"api-cloud":"http://127.0.0.1:8089", "api-cloud":"http://127.0.0.1:8089",
"ipcs":[ "ipcs":[
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
"iid":1, "iid":1,
"post":30, "post":30,
"pre":3, "pre":3,
"sn":"T6L5N3KN", "sn":"W5TA2ZE6",
"status":0, "status":0,
"thresh":80, "thresh":80,
"type":"motion" "type":"motion"
...@@ -24,8 +24,9 @@ ...@@ -24,8 +24,9 @@
{ {
"addr":"127.0.0.1", "addr":"127.0.0.1",
"iid":1, "iid":1,
"enabled": 1,
"port-pub":5556, "port-pub":5556,
"sn":"T6L5N3KN", "sn":"W5TA2ZE6",
"status":0 "status":0
} }
], ],
...@@ -34,7 +35,7 @@ ...@@ -34,7 +35,7 @@
"enabled":1, "enabled":1,
"iid":1, "iid":1,
"password":"", "password":"",
"sn":"T6L5N3KN", "sn":"W5TA2ZE6",
"status":0, "status":0,
"token":"", "token":"",
"urlDest":"rtsp://40.73.41.176:554/test1", "urlDest":"rtsp://40.73.41.176:554/test1",
...@@ -46,7 +47,7 @@ ...@@ -46,7 +47,7 @@
"enabled":1, "enabled":1,
"iid":1, "iid":1,
"path":"slices", "path":"slices",
"sn":"T6L5N3KN", "sn":"W5TA2ZE6",
"status":0 "status":0
} }
] ]
...@@ -62,7 +63,7 @@ ...@@ -62,7 +63,7 @@
"port-cloud":5556, "port-cloud":5556,
"port-router":5550, "port-router":5550,
"proto":"zmq", "proto":"zmq",
"sn":"T6L5N3KN", "sn":"W5TA2ZE6",
"status":1 "status":1
} }
}, },
......
...@@ -57,7 +57,6 @@ private: ...@@ -57,7 +57,6 @@ private:
spdlog::info("evmgr info: sn = {}, boot on {}", config["sn"].get<string>(), chrono::duration_cast<chrono::seconds>(chrono::system_clock::now().time_since_epoch()).count()); spdlog::info("evmgr info: sn = {}, boot on {}", config["sn"].get<string>(), chrono::duration_cast<chrono::seconds>(chrono::system_clock::now().time_since_epoch()).count());
devSn = config["sn"]; devSn = config["sn"];
spdlog::info("evmgr local config:\n{}", config.dump(4));
int opt_notify = ZMQ_NOTIFY_DISCONNECT|ZMQ_NOTIFY_CONNECT; int opt_notify = ZMQ_NOTIFY_DISCONNECT|ZMQ_NOTIFY_CONNECT;
string addr; string addr;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论