Autodetect RPi built-in UART and its serial port (Raspbian) by looking for /dev/ttyS0 (confirmed on RPi Zero). Useful if PMS device is directly connected to PIN 8 & 10 (GPIO 14 & 15) of RPi.
Built-in UART in RPi can be enabled by editing /boot/config.txt and setting: enable_uart=1 or via command raspi-config.
Autodetect RPi built-in UART and its serial port (Raspbian) by looking for /dev/ttyS0 (confirmed on RPi Zero). Useful if PMS device is directly connected to PIN 8 & 10 (GPIO 14 & 15) of RPi.
Built-in UART in RPi can be enabled by editing /boot/config.txt and setting: enable_uart=1 or via command raspi-config.