Communicating with RFCOMM using python
Sample application to show how bluetooth feature can be used for communication using python
- Python 3
- PyBluez - Bluetooth Python extension module. Use
pip install PyBluez
to install
That's it!
There are 3 files in this repository -
- discover.py - discovers nearby bluetooth devices
- rfcomm-server.py - server side connection file
- rfcomm-client.py - client side connection file
I used two laptops. 1 windows laptop to make server and 1 mac laptop to make client.
Run rfcomm-server.py on windows laptop
Run rfcomm-client.py on mac laptop