fixed TCP/IP connection to the lock server

This commit is contained in:
2025-08-27 17:14:40 +01:00
parent bb8cdb1d84
commit 1bceb55285
6 changed files with 8 additions and 4 deletions
+1 -1
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
}
+1 -1
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
}
+1 -1
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
}