Add serial and Arduino file

This commit is contained in:
2022-06-24 15:55:13 -07:00
parent 27fc1f5e16
commit 0e638e51bf
12 changed files with 133 additions and 73 deletions

View File

@ -22,33 +22,38 @@ barcode_server:
retry_interval: 2s
# (optional) HTTP push configuration
http:
serial:
# URL to send events to using a request
url: "http://dummy.restapiexample.com/api/v1/create"
path: "/dev/ttyUSB0"
# (optional) HTTP push configuration
# http:
# URL to send events to using a request
# url: "http://dummy.restapiexample.com/api/v1/create"
# The request method to use
method: POST
# method: POST
# Headers to set on each request
headers:
- "X-Auth-Token: MY_HEADERS"
# headers:
# - "X-Auth-Token: MY_HEADERS"
# (optional) MQTT push configuration
mqtt:
# mqtt:
# MQTT server host address
host: "mqtt.mydomain.com"
# host: "mqtt.mydomain.com"
# (optional) MQTT server port
port: 1883
# port: 1883
# (optional) Client ID of this barcode-server instance to provide to the MQTT server
client_id: "barcode-server"
# client_id: "barcode-server"
# MQTT topic to push events to
topic: "barcode-server/barcode"
# topic: "barcode-server/barcode"
# Username to use when connecting to the MQTT server
user: "myuser"
# user: "myuser"
# Password to use when connecting to the MQTT server
password: "mypassword"
# password: "mypassword"
# (optional) QoS value of event messages
qos: 2
# qos: 2
# (optional) Whether to instruct the MQTT server to remember event messages between restarts (of the MQTT server)
retain: True
# retain: True
# A list of regex patterns to match USB device names against
devices: