added constants

moved constants
This commit is contained in:
Javier Peletier
2020-12-12 12:15:25 +01:00
parent 39e383812e
commit ad8455cae3
2 changed files with 19 additions and 6 deletions
+19
View File
@@ -0,0 +1,19 @@
package zonewatcher
const REG_PER_ZONE = 4
const REG_ENABLED = 1
const REG_MODE = 2
const REG_TARGET_TEMP = 3
const REG_CURRENT_TEMP = 4
const FAN_OFF = 0x00
const FAN_LOW = 0x10
const FAN_MED = 0x20
const FAN_HIGH = 0x30
const FAN_AUTO = 0x40
const MODE_AIR_COOLING = 0x01
const MODE_AIR_HEATING = 0x02
const MODE_UNDERFLOOR_HEATING = 0x04
const MODE_UNDERFLOOR_AIR_COOLING = 0x05
const MODE_UNDERFLOOR_AIR_HEATING = 0x06
-6
View File
@@ -5,12 +5,6 @@ import (
"log"
)
const REG_PER_ZONE = 4
const REG_ENABLED = 1
const REG_MODE = 2
const REG_TARGET_TEMP = 3
const REG_CURRENT_TEMP = 4
type Watcher interface {
ReadRegister(address uint16) (value []byte, err error)
RegisterCallback(address uint16, callback func(address uint16))