fixed TCP/IP connection to the lock server

This commit is contained in:
yurii 2025-08-27 17:10:30 +01:00
parent bb8cdb1d84
commit 1bceb55285
6 changed files with 8 additions and 4 deletions

1
.gitignore vendored
View File

@ -28,6 +28,7 @@ Checkin.code-workspace
_obj
_test
.vscode/
ChipDNAClient/
# Architecture specific extensions/prefixes
*.[568vq]

View File

@ -22,7 +22,7 @@ func (lock *AssaLockServer) BuildCommand(doorReq DoorCardRequest, checkIn, check
func (lock *AssaLockServer) LockSequence() error {
const funcName = "AssaLockServer.LockSequence"
conn, err := InitializeServerConnection(lock.encoderAddr)
conn, err := InitializeServerConnection(LockServerURL)
if err != nil {
return err
}

View File

@ -56,7 +56,7 @@ func (lock *OmniLockServer) BuildCommand(doorReq DoorCardRequest, checkIn, check
func (lock *OmniLockServer) LockSequence() error {
const funcName = "OmniLockServer.LockSequence"
conn, err := net.Dial("tcp", lock.encoderAddr)
conn, err := InitializeServerConnection(LockServerURL)
if err != nil {
return err
}

View File

@ -146,7 +146,7 @@ func (lock *SaltoLockServer) LockSequence() error {
drained = 0 // count of stale frames consumed across waits
)
conn, err := InitializeServerConnection(lock.encoderAddr)
conn, err := InitializeServerConnection(LockServerURL)
if err != nil {
return err
}

View File

@ -29,7 +29,7 @@ import (
)
const (
buildVersion = "1.0.14"
buildVersion = "1.0.15"
serviceName = "hardlink"
customLayout = "2006-01-02 15:04:05 -0700"
transactionUrl = "http://127.0.0.1:18181/start-transaction/"

View File

@ -2,6 +2,9 @@
builtVersion is a const in main.go
#### 1.0.15 - 27 August 2025
fixed TCP/IP connection to the lock server
#### 1.0.14 - 21 August 2025
fixed issue in creditcall payment processing where error description was not properly set