uhppoted / uhppote-cli

Go CLI for the UHPPOTE UT0311 TCP/IP access controller boards
MIT License
8 stars 4 forks source link

get-devices reports "ERROR: Door '' is defined more than once in configuration_" #5

Closed uhppoted closed 3 years ago

uhppoted commented 3 years ago
uhppote-cli --debug get-devices

... using default configuration from C:\ProgramData\uhppoted\uhppoted.conf
   ERROR: Door '' is defined more than once in configuration

My config file C:\ProgramData\uhppoted\uhppoted.conf

# SYSTEM
bind.address = 192.168.1.131:0
broadcast.address = 192.168.1.255:60000
listen.address = 192.168.1.131:60001

# REST
rest.http.enabled = true
rest.http.port = 8080
rest.https.enabled = false
rest.https.port = 8443
rest.CORS.enabled = true
rest.auth.enabled = false

# DEVICES
UT0311-L0x.303986753.address = 192.168.1.131:60000
UT0311-L0x.303986753.rollover = 100000
UT0311-L0x.303986753.door.1 = Great Hall
twystd commented 3 years ago

uhppoted-api.Config was updated in commit c8c831f to handle blank doors in the configuration file.

Have updated dependencies in all sub-projects to include this fix:

Leaving this issue open pending additional testing.

twystd commented 3 years ago

Fix verified - leaving this issue open pending release

uhppoted commented 3 years ago

Fixed in release v0.6.12