|
|
@ -54,7 +54,7 @@ TransmitDisinfection::TransmitDisinfection(QWidget *parent) : QTabWidget(parent) |
|
|
|
} else if (type == kreport) { |
|
|
|
BSHOW("[REPORT ] [%d->%d],%s %s(%d)", from, to, zhex2str(hex, sizeof(*frame)).c_str(), //
|
|
|
|
zhex2str(frame->params, paramLen).c_str(), paramLen); //
|
|
|
|
} |
|
|
|
} |
|
|
|
processReportPacket(type, from, to, hex, hexlen); |
|
|
|
}); |
|
|
|
} |
|
|
@ -89,7 +89,7 @@ void TransmitDisinfection::processReportPacket(packet_type_t type, uint8_t from, |
|
|
|
report_h2o2_data_t *ack = (report_h2o2_data_t *)frame->params; |
|
|
|
QString info; |
|
|
|
info.append(fmt("[H2O2 ][FROM:%03d] err:%d h2o2:%d ppm (adc:%d) (x10ppm),hum:%d (x10),temp:%d (x10),sat:%d (x10)", //
|
|
|
|
from, ack->sensor_error, ack->h2o2,ack->h2o2adc, ack->rh, ack->temp, ack->rs)); |
|
|
|
from, ack->sensor_error, ack->h2o2, ack->h2o2adc, ack->rh, ack->temp, ack->rs)); |
|
|
|
RSHOW(info.toStdString().c_str()); |
|
|
|
} |
|
|
|
//
|
|
|
@ -102,6 +102,10 @@ void TransmitDisinfection::processReportPacket(packet_type_t type, uint8_t from, |
|
|
|
report_water_sensor_state_t *ack = (report_water_sensor_state_t *)frame->params; |
|
|
|
RSHOW("[设备底部水浸][FROM:%03d] (%d)", from, ack->state); |
|
|
|
} |
|
|
|
//
|
|
|
|
else { |
|
|
|
RSHOW("[UNKNOWN ][FROM:%03d] %s", from, zhex2str(hex, hexlen).c_str()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
TransmitDisinfection::~TransmitDisinfection() {} |