25 lines
545 B
C
25 lines
545 B
C
|
#pragma once
|
|||
|
#include "BaseClient.h"
|
|||
|
#include "../config/bean/AlarmCfg.h"
|
|||
|
#include "../config/bean/RunCfg.h"
|
|||
|
|
|||
|
class TempHumidityUnit :public TcpClient
|
|||
|
{
|
|||
|
public:
|
|||
|
TempHumidityUnit(CommunicationCfg* pconfig);
|
|||
|
~TempHumidityUnit();
|
|||
|
void InitCommand();
|
|||
|
|
|||
|
void GetValue(float& temp, float& humidity, BaseStat& bs);
|
|||
|
void GetValue(float& temp, float& humidity);
|
|||
|
private:
|
|||
|
void static PorcReadValue(void* pobject, Command* pcommand);
|
|||
|
|
|||
|
private:
|
|||
|
float m_TempValue;
|
|||
|
float m_HumidityValue;
|
|||
|
AlarmCfgWrapper* m_AlarmCfgWrapper;
|
|||
|
RunCfg* m_RunCfg;
|
|||
|
};
|
|||
|
|