# Meshy - MeshCore companion USB serial access
# Install to /etc/udev/rules.d/ or /usr/lib/udev/rules.d/
# Then reload: sudo udevadm control --reload-rules && sudo udevadm trigger
#
# Grants access to USB CDC-ACM serial devices (ttyACM*) and USB-to-serial
# adapters (ttyUSB*) commonly used by MeshCore companions (ESP32, NRF52,
# RP2040, Seeed Wio, Heltec, etc.)
#
# Uses TAG+="uaccess" so only the logged-in console user gets access,
# rather than making devices world-writable.

# CDC-ACM devices (most MeshCore companions)
SUBSYSTEM=="tty", KERNEL=="ttyACM[0-9]*", TAG+="uaccess"

# FTDI/CP210x/CH340 USB-to-serial adapters (ttyUSB*)
SUBSYSTEM=="tty", KERNEL=="ttyUSB[0-9]*", TAG+="uaccess"
