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
- @client.write @status.get {
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)
@@ -7,7 +7,7 @@ module Sappho
7
7
  module Heatmiser
8
8
  module Proxy
9
9
  NAME = "sappho-heatmiser-proxy"
10
- VERSION = "0.0.5"
10
+ VERSION = "0.0.6"
11
11
  AUTHORS = ["Andrew Heald"]
12
12
  EMAILS = ["andrew@heald.co.uk"]
13
13
  HOMEPAGE = "https://github.com/sappho/sappho-heatmiser-proxy/wiki"
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: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andrew Heald