/// <summary> /// 设置温控器启动加热或停止加热时调用 /// </summary> /// <param name="content"></param> /// <param name="receiver"></param> /// <param name="enable"></param> public HeaterMessage(HeaterMsg content, HeaterController receiver, bool enable, int chanelNo) { this.content = content; this.receiver = receiver; this.enable = enable; this.chanelNo = chanelNo; }
/// <summary> /// 写入时调用 /// </summary> /// <param name="content"></param> /// <param name="value"></param> /// <param name="receiver"></param> public HeaterMessage(HeaterMsg content, double value, int chanelNo, HeaterController receiver) { this.content = content; this.receiver = receiver; this.Value = value; this.chanelNo = chanelNo; }