Client and Server RFCOMM written in Python
Install the next software.
sudo apt-get install git bluez libbluetooth-dev
Install python pybluez module.
pip3 install pybluez
Clone this repository.
git clone https://github.com/gustavorv86/py_bluez
Show the bluetooth devices.
hciconfig -a
Configure the bluetooth device.
hciconfig hci0 piscan
Run the server.
python3 pyBluez/pyBluezServer.py **<server_port_number>**
Send message from the client to the server.
python3 pyBluez/pyBluezClient.py **<mac_server>** **<server_port_number>** **<"Message to send">**