From fff1312c6e6c479942ae2b9f76836c7cd88fe879 Mon Sep 17 00:00:00 2001 From: zw <3466561528@qq.com> Date: Fri, 25 Jul 2025 10:50:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BA=86=E5=AE=9E=E6=97=B6?= =?UTF-8?q?=E7=9A=84=E8=BD=AC=E6=8D=A2=E6=96=B9=E5=BC=8F=EF=BC=8C=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E4=BA=86=E4=B8=8D=E5=90=8C=E6=8E=A5=E7=BA=BF=E6=96=B9?= =?UTF-8?q?=E5=BC=8F=E7=9A=84=E8=BD=AC=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LFtid1056/dealMsg.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/LFtid1056/dealMsg.cpp b/LFtid1056/dealMsg.cpp index b276cdb..a6685b5 100644 --- a/LFtid1056/dealMsg.cpp +++ b/LFtid1056/dealMsg.cpp @@ -499,8 +499,16 @@ void process_received_message(string mac, string id,const char* data, size_t len } } - std::string base64 = realdata.ConvertToBase64(); - std::cout << base64 << std::endl; + std::string strScale;//电压等级 + int nPTType = 0;//接线方式 + ClientManager::instance().get_point_scale_and_pttype( + id, // 或使用id + static_cast(udata[12]), // 从报文中解析出的测点序号 + strScale, + nPTType); + + std::string base64 = realdata.ConvertToBase64(nPTType); + //std::cout << base64 << std::endl; //lnk实时数据使用接口发送20250711 time_t data_time = ConvertToTimestamp(realdata.time);