Add support for multiple serial devices

This commit is contained in:
2022-06-30 09:20:13 -07:00
parent f6c206e0b1
commit 87e337a69d
8 changed files with 85 additions and 23 deletions

View File

@ -24,7 +24,8 @@ barcode_server:
# (optional) Serial push configuration
serial:
# URL to send events to using a request
path: "/dev/ttyUSB0"
pathA: "/dev/ttyUSB0"
pathB: "/dev/ttyUSB1"
# (optional) file push configuration
file:
@ -62,7 +63,7 @@ barcode_server:
# A list of regex patterns to match USB device names against
devices:
- ".*Barcode.*"
- ".*ode.*"
# A list of absolute file paths to devices
device_paths:
#- "/dev/input/barcode_scanner"