提交 1ebd1ce5 authored 作者: blu's avatar blu

init

上级 87ec593e
...@@ -289,57 +289,73 @@ namespace cloudutils ...@@ -289,57 +289,73 @@ namespace cloudutils
* */ * */
/* /*
{ {
"code":0,
"time":0, "time":0,
"code":0,
"data":{ "data":{
"ipc":"172.31.0.51",
"username":"admin",
"password":"FWBWTU",
"services":{
"evmgr":{ "evmgr":{
"sn":"ILS-1", "sn":"ILSEVMGR1",
"addr":"0.0.0.0", "addr":"172.31.0.76",
"port-pub":5556, "addr-cloud":"172.31.0.76",
"port-rep":5557, "port-cloud":5556,
"iid":1 "port-router":5550,
}, "status":1,
"evpuller":{ "ipcs":[
"sn":"ILS-2", {
"addr":"0.0.0.0", "addr":"172.31.0.51",
"port-pub":5556, "proto":"rtsp",
"port-rep":5557, "user":"admin",
"iid":2 "password":"FWBWTU",
}, "status":1,
"modules":{
"evpuller":[
{
"sn":"ILSEVPULLER1",
"addr":"172.31.0.76",
"iid":1,
"port-pub":"5556",
"status":1
}
],
"evpusher":[ "evpusher":[
{ {
"sn":"ILS-2", "sn":"ILSEVPUSHER1",
"addr":"localhost", "iid":1,
"iid":2, "proto":"rtsp",
"addrDest":"40.73.41.176",
"portDest":554,
"user":"",
"password":"",
"token":"",
"enabled":1, "enabled":1,
"urlDest":"rtsp://40.73.41.176:554/test1" "status":1
} }
], ],
"evslicer":[ "evslicer":[
{ {
"sn":"ILS-3", "sn":"ILSEVSLICER1",
"addr":"192.168.0.25", "iid":1,
"iid":3, "path":"slices",
"path": "/var/lib/slices/" "enabled":1,
"status":1
} }
], ],
"evml":[ "evml":[
{ {
"feature":"motion", "type":"motion",
"sn":"ILS-4", "sn":"ILSEVMLMOTION1",
"addr":"192.168.0.26", "iid":1,
"iid":4 "enabled":1,
"status":1
}
]
}
} }
] ]
} }
} }
} }
*/ */
const char *config = "{\"code\":0,\"time\":0,\"data\":{\"ipc\":\"172.31.0.51\",\"username\":\"admin\",\"password\":\"FWBWTU\",\"services\":{\"evmgr\":{\"sn\":\"ILS-1\",\"addr\":\"0.0.0.0\",\"port-pub\":5556,\"port-rep\":5557,\"iid\":1},\"evpuller\":{\"sn\":\"ILS-2\",\"addr\":\"0.0.0.0\",\"port-pub\":5556,\"port-rep\":5557,\"iid\":2},\"evpusher\":[{\"sn\":\"ILS-2\",\"addr\":\"localhost\",\"iid\":2,\"enabled\":1,\"urlDest\":\"rtsp://40.73.41.176:554/test1\"}],\"evslicer\":[{\"sn\":\"ILS-3\",\"addr\":\"192.168.0.25\",\"iid\":3}],\"evml\":[{\"feature\":\"motion\",\"sn\":\"ILS-4\",\"addr\":\"192.168.0.26\",\"iid\":4}]}}}"; const char *config = "{\"time\":0,\"code\":0,\"data\":{\"evmgr\":{\"sn\":\"ILSEVMGR1\",\"addr\":\"172.31.0.76\",\"addr-cloud\":\"172.31.0.76\",\"port-cloud\":5556,\"port-router\":5550,\"status\":1,\"ipcs\":[{\"addr\":\"172.31.0.51\",\"proto\":\"rtsp\",\"user\":\"admin\",\"password\":\"FWBWTU\",\"status\":1,\"modules\":{\"evpuller\":[{\"sn\":\"ILSEVPULLER1\",\"addr\":\"172.31.0.76\",\"iid\":1,\"port-pub\":\"5556\",\"status\":1}],\"evpusher\":[{\"sn\":\"ILSEVPUSHER1\",\"iid\":1,\"proto\":\"rtsp\",\"addrDest\":\"40.73.41.176\",\"portDest\":554,\"user\":\"\",\"password\":\"\",\"token\":\"\",\"enabled\":1,\"status\":1}],\"evslicer\":[{\"sn\":\"ILSEVSLICER1\",\"iid\":1,\"path\":\"slices\",\"enabled\":1,\"status\":1}],\"evml\":[{\"type\":\"motion\",\"sn\":\"ILSEVMLMOTION1\",\"iid\":1,\"enabled\":1,\"status\":1}]}}]}}}";
json registry(const char *sn, const char *scn, int iid) json registry(const char *sn, const char *scn, int iid)
{ {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论