Last active
March 31, 2019 22:25
-
-
Save sumanssaurabh/d78c9e3c011ab2dd3b0f8a89749b1cf7 to your computer and use it in GitHub Desktop.
RFCOMM service with job control, ioctl for rpi 3b/b+ ,serial line comm over bluetooth
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=RFCOMM service | |
After=bluetooth.service | |
Requires=bluetooth.service | |
[Service] | |
ExecStartPre=/usr/bin/sdptool add --channel=3 SP | |
ExecStart=/usr/bin/rfcomm watch hci0 3 setsid /sbin/agetty -L rfcomm0 --keep-baud 115200,38400,9600 xterm -a pi | |
Restart=on-failure | |
RestartSec=5s | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment