Container uses /dev/ttyUSB0

This commit is contained in:
2023-03-24 11:27:32 +01:00
parent 534e8dc294
commit ad65a48289

View File

@@ -17,7 +17,7 @@ ActiveRecord::Base.establish_connection(connection_details)
if __FILE__ == $0
#params for serial port
port_str = "/dev/ttyUSB1" #may be different for you
port_str = "/dev/ttyUSB0" #may be different for you
baud_rate = 9600
data_bits = 7
stop_bits = 1