This project has a temporary name as "Blue Agent", it uses bluetooth as a proximity sensor to detect my phone when I am getting near to my cubic.
It is still under construct, the final goal is to use this sensor to unlock and lock my Windows PCs, and this program runs on my raspberry pi.
So even when my pc is in sleep mode it can also wake the pc up through network.
sudo apt-get install libbluetooth-dev
sudo apt-get install libssl-dev
Once CMake has been install navigate to the root of the project and issue the following commands:
git clone https://github.com/MiniSoda/cblue.git
cd cblue
mkdir build
cd build
cmake .. && make all
./blueAgent -b 12:34:56:78:90:AB
Cautions
This project is not finished yet, wear your helmet.