提交v2.2.2

This commit is contained in:
xin
2025-11-27 18:50:16 +08:00
parent 612bf24b15
commit 9e003b2ee7
14 changed files with 76 additions and 14 deletions

View File

@ -19,8 +19,8 @@
"Pin": 19
},
"WINDOWS": {
"Pin_H": 10,
"Pin_L": 7,
"Pin_H": 7,
"Pin_L": 10,
"WaitTime": 80
}
},

View File

@ -81,7 +81,7 @@ void TemperaTureWoker::OpenCom(QString portname, int baudrate) {
ReadTempreature();
}
int timesforrecode=0;
void TemperaTureWoker::ReadTempreature() {
if (m_isInit) {
m_SerialPort->write("{\"command\":\"get_temp\"}");
@ -108,7 +108,11 @@ void TemperaTureWoker::ReadTempreature() {
return;
}
std::cout << data.toStdString()<< std::endl;
logout("TemperaSersor",data.toHex(),5);
if (timesforrecode%30==0) {
logout("TemperaSersor",data.toHex(),5);
}
timesforrecode++;
qDebug() << data;
try {
json::parse(data.toStdString());