add rtdata idx
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
|
||||
#include "cloudfront/code/interface.h" //lnk20250708
|
||||
#include "cloudfront/code/rocketmq.h" //lnk20250708
|
||||
#include "cloudfront/code/log4.h" //lnk20250924
|
||||
#include "client2.h"
|
||||
#include "cloudfront/code/log4.h"
|
||||
|
||||
@@ -122,17 +123,13 @@ void process_received_message(string mac, string id,const char* data, size_t len
|
||||
//end_time.tm_min = 1;
|
||||
//end_time.tm_sec = 1;
|
||||
//ClientManager::instance().read_eventlog_action_to_device(id, start_time, end_time,2,1);
|
||||
|
||||
//DIY_ERRORLOG_CODE("111", 0, static_cast<int>(LogCode::LOG_CODE_OTHER), "【ERROR】测试告警发送 前置");
|
||||
//DIY_ERRORLOG_CODE(id, 1, static_cast<int>(LogCode::LOG_CODE_OTHER), "【ERROR】测试告警发送 设备");
|
||||
/*std::string mpid;
|
||||
DIY_ERRORLOG_CODE("111", 0, static_cast<int>(LogCode::LOG_CODE_OTHER), "【ERROR】测试告警发送 前置");
|
||||
DIY_ERRORLOG_CODE(id, 1, static_cast<int>(LogCode::LOG_CODE_OTHER), "【ERROR】测试告警发送 设备");
|
||||
std::string mpid;
|
||||
get_monitor_id_by_dev_and_seq(id, 1, mpid);
|
||||
if (!mpid.empty()) {
|
||||
DIY_ERRORLOG_CODE(mpid, 2, static_cast<int>(LogCode::LOG_CODE_OTHER), "【ERROR】测试告警发送 测点");
|
||||
}*/
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
if (udata[19] == 0x00) {
|
||||
std::cout << "cloud login: " << mac << " state: fail!" << std::endl;
|
||||
@@ -153,6 +150,7 @@ void process_received_message(string mac, string id,const char* data, size_t len
|
||||
//处理主动上送的暂态事件报文
|
||||
NewTaglogbuffer event = NewTaglogbuffer::createFromData(parser.RecvData.data(), parser.RecvData.size());
|
||||
|
||||
<<<<<<< HEAD
|
||||
//获取测点id
|
||||
std::string mpid;
|
||||
get_monitor_id_by_dev_and_seq(id, 1, mpid);
|
||||
@@ -234,6 +232,8 @@ void process_received_message(string mac, string id,const char* data, size_t len
|
||||
}
|
||||
|
||||
|
||||
=======
|
||||
>>>>>>> 096e590 (add rtdata idx)
|
||||
// 获取测点参数
|
||||
std::string strScale;//电压等级
|
||||
int nPTType;//接线方式
|
||||
|
||||
Reference in New Issue
Block a user