The following are instructions for connecting a Bluetooth device for serial communication on Arch Linux using BlueZ 5.31.
The following packages are required:
bluez:bluetoothdbluez-utils:bluetoothctl,rfcomm
| from __future__ import print_function | |
| import requests | |
| import threading | |
| import sys | |
| def eprint(*args, **kwargs): | |
| print(*args, file=sys.stderr, **kwargs) |
| #!/bin/bash | |
| # | |
| BASE=/tmp | |
| PID=$BASE/app.pid | |
| LOG=$BASE/app.log | |
| ERROR=$BASE/app-error.log | |
| PORT=11211 | |
| LISTEN_IP='0.0.0.0' | |
| MEM_SIZE=4 |