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
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| /** | |
| * Remove the directory and its content (all files and subdirectories). | |
| * @param string $dir the directory name | |
| */ | |
| function rmrf($dir) { | |
| foreach (glob($dir) as $file) { | |
| if (is_dir($file)) { | |
| rmrf("$file/*"); | |
| rmdir($file); | |
| } else { |