sappho-heatmiser-proxy 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -30,11 +30,13 @@ module Sappho
|
|
30
30
|
timeout 20 do
|
31
31
|
command = read 5
|
32
32
|
if command == 'check'
|
33
|
-
|
33
|
+
reply = @status.get {
|
34
34
|
@status.timeSinceLastValid > 60 ?
|
35
35
|
'error: no response from heatmiser unit in last minute' :
|
36
36
|
@status.valid ? 'ok' : 'error: last response from heatmiser unit was invalid'
|
37
37
|
}
|
38
|
+
@log.info "client requested status - reply: #{reply}"
|
39
|
+
@client.writeline reply
|
38
40
|
else
|
39
41
|
@log.debug "header: #{TraceLog.hex command}" if @log.debug?
|
40
42
|
packetSize = (command[1] & 0xFF) | ((command[2] << 8) & 0x0F00)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sappho-heatmiser-proxy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 6
|
10
|
+
version: 0.0.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Andrew Heald
|