blob: 18e84066a406c05a91fd694b6ed63be0f0fd0f53 (
plain)
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
|
#ifndef TEMPERATURE_MONITOR_OPTIONS_H
#define TEMPERATURE_MONITOR_OPTIONS_H
class Temperature_Monitor_Options
{
public:
Temperature_Monitor_Options (int, ACE_TCHAR *[])
{ }
const char *thermometer_address (void)
{
return "serial:// s0/0x3e52";
}
int poll_interval (void)
{
return 10; // every 10 seconds
}
int reset_interval (void)
{
return 60; // sixty seconds
}
int excessive_resets (void)
{
return 5; // no response in 5 minutes
}
const char *admin_email (void)
{
return "root@localhost";
}
const char *email_from (void)
{
return "temperature monitor";
}
int history_size()
{
return 10;
}
};
#endif /* TEMPERATURE_MONITOR_OPTIONS_H */
|