mirror of
http://172.16.0.230/r/SIF/TowerOptoSifAndSpectral.git
synced 2025-12-16 03:23:32 +08:00
提交v2.2.2
This commit is contained in:
@ -19,8 +19,8 @@
|
||||
"Pin": 19
|
||||
},
|
||||
"WINDOWS": {
|
||||
"Pin_H": 10,
|
||||
"Pin_L": 7,
|
||||
"Pin_H": 7,
|
||||
"Pin_L": 10,
|
||||
"WaitTime": 80
|
||||
}
|
||||
},
|
||||
|
||||
@ -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());
|
||||
|
||||
Reference in New Issue
Block a user