将接口调用改为线程执行,防止超时阻塞数据/状态控制线程
This commit is contained in:
@@ -353,9 +353,10 @@ void process_received_message(string mac, string id,const char* data, size_t len
|
||||
if(record.nType != 0){
|
||||
append_qvvr_event(id,event.head.name,
|
||||
record.nType,record.fPersisstime,record.fMagntitude,record.triggerTimeMs,record.phase);
|
||||
transfer_json_qvvr_data(id,event.head.name,
|
||||
/*transfer_json_qvvr_data(id,event.head.name,
|
||||
record.fMagntitude,record.fPersisstime,record.triggerTimeMs,record.nType,record.phase,
|
||||
"");
|
||||
"");*/
|
||||
enqueue_qvvr_json_update(id, event.head.name, record.fMagntitude, record.fPersisstime, record.triggerTimeMs, record.nType, record.phase, "");
|
||||
}
|
||||
|
||||
//事件主动上送处理完成,不需要通知状态机
|
||||
@@ -848,7 +849,8 @@ void process_received_message(string mac, string id,const char* data, size_t len
|
||||
std::cout << "File saved: " << file_path << std::endl;
|
||||
|
||||
//lnk20250805文件保存成功调用录波文件上送接口
|
||||
update_qvvr_file_download(file_path, id);
|
||||
//update_qvvr_file_download(file_path, id);
|
||||
enqueue_qvvr_file_download(file_path, id);
|
||||
}
|
||||
else {
|
||||
std::cerr << "Failed to save file: " << file_path
|
||||
@@ -2461,8 +2463,9 @@ void process_received_message(string mac, string id,const char* data, size_t len
|
||||
record.nType,record.fPersisstime,record.fMagntitude,record.triggerTimeMs,record.phase);
|
||||
|
||||
//直接发走暂态事件
|
||||
transfer_json_qvvr_data(id,event.head.name,
|
||||
record.fMagntitude,record.fPersisstime,record.triggerTimeMs,record.nType,record.phase,"");
|
||||
/*transfer_json_qvvr_data(id,event.head.name,
|
||||
record.fMagntitude,record.fPersisstime,record.triggerTimeMs,record.nType,record.phase,"");*/
|
||||
enqueue_qvvr_json_update(id, event.head.name, record.fMagntitude, record.fPersisstime, record.triggerTimeMs, record.nType, record.phase, "");
|
||||
}
|
||||
//通知状态机补招暂态事件成功
|
||||
on_device_response_minimal(static_cast<int>(ResponseCode::OK), id, 0, static_cast<int>(DeviceState::READING_EVENTLOG));
|
||||
|
||||
Reference in New Issue
Block a user