Browse Source

小空间消毒机支持水浸报警

master
zhaohe 1 year ago
parent
commit
b472cb6572
  1. 4
      src/configs/project_setting.hpp
  2. 17
      src/service/device_io_control_service.cpp
  3. 2
      transmit_disinfection_protocol_v1

4
src/configs/project_setting.hpp

@ -11,8 +11,8 @@
#if (!defined PROJECT_TYPE_LARGE_SPACE_DISINFECTION) && (!defined PROJECT_TYPE_SMALL_SPACE_DISINFECTION) && (!defined PROJECT_TYPE_PIPE_DISINFECTION) && (!defined PROJECT_TYPE_DRAW_BAR_BOX)
#define PROJECT_TYPE_LARGE_SPACE_DISINFECTION 1 // 大空间
// #define PROJECT_TYPE_SMALL_SPACE_DISINFECTION 1 // 小空间
// #define PROJECT_TYPE_LARGE_SPACE_DISINFECTION 1 // 大空间
#define PROJECT_TYPE_SMALL_SPACE_DISINFECTION 1 // 小空间
// #define PROJECT_TYPE_PIPE_DISINFECTION 1 // 管道消毒机
// #define PROJECT_TYPE_DRAW_BAR_BOX 1 // 拉感箱
#endif

17
src/service/device_io_control_service.cpp

@ -175,6 +175,23 @@ void DeviceIoControlService::startScan() {
// logger->info("DeviceBottomWaterDetectionSensor:{}", m_deviceBottomWaterDetectionSensor);
}
#endif
#if (defined PROJECT_TYPE_SMALL_SPACE_DISINFECTION)
if (i % 100 == 0) {
int32_t ack0 = 0;
int32_t ack1 = 0;
m_zcanHost->call(kcmd_read_device_bottom_water_detection_sensor, &ack0);
m_zcanHost->call(kcmd_read_evaporation_bin_water_detection, &ack1);
m_deviceBottomWaterDetectionSensor = ack0;
m_evaporationBinWaterDetection = ack1;
// logger->info("DeviceBottomWaterDetectionSensor:{} EvaporationBinWaterDetection:{}", m_deviceBottomWaterDetectionSensor, m_evaporationBinWaterDetection);
}
#endif
// kcmd_read_device_bottom_water_detection_sensor
// kcmd_read_evaporation_bin_water_detection
}
}));
#endif

2
transmit_disinfection_protocol_v1

@ -1 +1 @@
Subproject commit 6eb4a87eb4bdb1226db1d0e92f277b1c20d49b05
Subproject commit c39bd364d809a9a6ad965c83fd3ea28c67514317
Loading…
Cancel
Save