This commit is contained in:
Your Name 2024-11-22 08:47:56 +01:00
commit 28ae39347e

View File

@ -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