This file contains hidden or 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
#!/usr/bin/env python | |
import time, os, sys, signal | |
sleeptime = waketime = 0.01 | |
def send(signal, pids): | |
for pid in pids: | |
os.kill(pid, signal) |
This file contains hidden or 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
# install bluetooth tools | |
sudo apt-get install --no-install-recommends bluetooth | |
# find MAC address (needs to be discoverable) | |
hcitool scan | |
# ping it | |
sudo l2ping -c 1 12:34:56:78:90 | |
# Connect by MAC |