提交 9a89272c authored 作者: blu's avatar blu

big refacting of communitation architect

上级 a470d957
...@@ -86,9 +86,9 @@ query configuration for edge device with specified sn ...@@ -86,9 +86,9 @@ query configuration for edge device with specified sn
set or change configuration for edge device set or change configuration for edge device
##### params ##### params
- none - none
##### return ##### body
- type: json - type: json
- example: - example
``` ```
{ {
"data":{ "data":{
...@@ -156,6 +156,12 @@ set or change configuration for edge device ...@@ -156,6 +156,12 @@ set or change configuration for edge device
"lastupdated":1567669674 "lastupdated":1567669674
} }
``` ```
##### return
- type: json
- example:
```
{"code": 0, "msg":"ok", "data":JSON}
```
#### GET /keys #### GET /keys
##### description ##### description
......
...@@ -199,7 +199,6 @@ private: ...@@ -199,7 +199,6 @@ private:
}else{ }else{
this->peerData["config"][k] = v; this->peerData["config"][k] = v;
} }
// TODO: trigger msg // TODO: trigger msg
} // for evmgr } // for evmgr
......
...@@ -359,13 +359,13 @@ protected: ...@@ -359,13 +359,13 @@ protected:
spdlog::error("evslicer {} could not open output file {}", selfId, name); spdlog::error("evslicer {} could not open output file {}", selfId, name);
} }
} }
av_dict_set(&pOptsRemux, "segment_start_number", to_string(segHead).data(), 0); av_dict_set(&pOptsRemux, "segment_start_number", to_string(segHead+1).data(), 0);
ret = avformat_write_header(pAVFormatRemux, &pOptsRemux); ret = avformat_write_header(pAVFormatRemux, &pOptsRemux);
if (ret < 0) { if (ret < 0) {
spdlog::error("evslicer {} error occurred when opening output file", selfId); spdlog::error("evslicer {} error occurred when opening output file", selfId);
} }
spdlog::info("evslicer {} writing new slice {}", selfId, name.c_str()); spdlog::info("evslicer {} start writing new slices", selfId);
int pktIgnore = 0; int pktIgnore = 0;
while(true) { while(true) {
int ret =zmq_msg_init(&msg); int ret =zmq_msg_init(&msg);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论