modify recall
This commit is contained in:
@@ -2134,12 +2134,18 @@ void process_received_message(string mac, string id,const char* data, size_t len
|
||||
if (udata[10] == static_cast<unsigned char>(0x0c)) {
|
||||
//0x0c错误码代表询问暂态数据不存在,通知前台当前时间段无暂态
|
||||
std::cout << "not find event " << mac << std::endl;
|
||||
//lnk20251023
|
||||
on_device_response_minimal(static_cast<int>(ResponseCode::NOT_FOUND), id, 0, static_cast<int>(DeviceState::READING_EVENTLOG));
|
||||
}
|
||||
else if (udata[10] == static_cast<unsigned char>(0x06)) {
|
||||
//0x0c错误码代表补招方法参数错误,通知前台参数异常
|
||||
//lnk20251023
|
||||
on_device_response_minimal(static_cast<int>(ResponseCode::FORBIDDEN), id, 0, static_cast<int>(DeviceState::READING_EVENTLOG));
|
||||
}
|
||||
else {
|
||||
//其余错误码代表异常情况
|
||||
//lnk20251023
|
||||
on_device_response_minimal(static_cast<int>(ResponseCode::BAD_REQUEST), id, 0, static_cast<int>(DeviceState::CUSTOM_ACTION));
|
||||
}
|
||||
// 装置否定
|
||||
// 补招装置日志失败,调整为空闲状态,处理下一项工作。
|
||||
|
||||
Reference in New Issue
Block a user