Compare commits

..
2 Commits
4 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ func logStatus(statusBytes []byte) {
for _, p := range posStatus {
statusMsg, exists := p.mapper[p.value]
if !exists {
statusMsg = fmt.Sprintf("Unknown status 0x%X", p.value)
statusMsg = fmt.Sprintf("Unknown status 0x%X at position %d", p.value, p.pos)
}
if p.value != 0x30 {
result.WriteString(statusMsg + "; ")
+1 -1
View File
@@ -102,7 +102,7 @@ func sendAndReceive(conn net.Conn, command []byte) (string, error) {
return "", fmt.Errorf("failed to send command: %v", err)
}
conn.SetReadDeadline(time.Now().Add(10 * time.Second))
conn.SetReadDeadline(time.Now().Add(20 * time.Second))
buf := make([]byte, 128)
reader := bufio.NewReader(conn)
+1 -1
View File
@@ -27,7 +27,7 @@ import (
)
const (
buildVersion = "1.1.1"
buildVersion = "1.1.3"
serviceName = "hardlink"
pollingFrequency = 8 * time.Second
)
+6
View File
@@ -2,6 +2,12 @@
builtVersion is a const in main.go
#### 1.1.3 - 02 February 2026
increased timeout for reading response from the Assa abloy lock server to 20 seconds
#### 1.1.2 - 02 February 2026
added logging for unknown dispenser status positions
#### 1.1.1 - 02 February 2026
added contionuous polling of the dispenser status every 8 seconds to update the card well status