-
Notifications
You must be signed in to change notification settings - Fork 0
/
VaisalaPTU300Hygrometer.cs
81 lines (59 loc) · 1.72 KB
/
VaisalaPTU300Hygrometer.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Net;
namespace Temperature_Monitor
{
public class VaisalaPTU300Hygrometer:Hygrometer
{
private int timer_zero1;
private int timer_zero2;
private int timer_1;
private int timer_2;
private string barometer_ip = "";
private bool error_reported = false;
private bool isactive = false;
private short dev_id = 255;
protected static readonly int port = 23;
public VaisalaPTU300Hygrometer(string correction_eq, string hostname_, ref PrintHumidityData h_update_):base(correction_eq, hostname_, ref h_update_)
{
h_update = h_update_;
}
public PrintHumidityData HUpdate
{
get { return h_update; }
}
public override void SetHumidity(double hty)
{
humidity_result = hty;
}
public ClientSocket Sockt
{
set { TcpClient = value; }
get { return TcpClient; }
}
public override double GetHumidity()
{
return humidity_result + correction;
}
public double Correction
{
get { return correction; }
set { correction = value; }
}
public short DevID
{
get { return dev_id; }
set { dev_id = value; }
}
public void HLoggerQuery(object stateinfo)
{
}
public static short NumConnectedLoggers
{
get { return num_connected_loggers; }
}
}
}