update
This commit is contained in:
parent
2dd51a656f
commit
1d5e14746e
@ -54,7 +54,7 @@ cursor = conn.cursor()
|
||||
|
||||
# Configuration of the serial port
|
||||
try:
|
||||
ser = serial.Serial('/dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0', 9600)
|
||||
ser = serial.Serial('/dev/serial/by-path/pci-0000:00:14.0-usbv2-0:3:1.0-port0', 9600)
|
||||
print("Serial port connected successfully.")
|
||||
except serial.SerialException:
|
||||
ser = None
|
||||
|
Loading…
Reference in New Issue
Block a user