less than 1 minute read

Iot rfcomm service 사용

sudo nano /etc/systemd/system/rfcomm.service

[Unit]
Description=RFCOMM service
After=bluetooth.service
Requires=bluetooth.service

[Service]
ExecStart=/usr/bin/rfcomm watch hci0 1 getty rfcomm0 115200 vt100 -a pi

[Install]
WantedBy=multi-user.target


sudo systemctl enable rfcomm

sudo systemctl start rfcomm

sudo systemctl status rfcomm

Categories:

Updated: