Here is a really quick guide to connect a HC-05 to a computer and send data to a serial port. I wanted to do this with a HM-10 module but only found information that this feature is missing on the module. If someone knows how to do this on a HM-10 I would love to hear about it.
So the first thing you do is to follow my previous guide on the HC-05 and set one of the modules in SLAVE mode. Also note the address of the device as we will be using it shortly.
Second, on a linux computer, fire up bluetoothctl and enter the following command.
# pair <module address>
# connect <module address>
Then in another terminal enter the following to bind the module to a serial port:
sudo rfcomm bind 2 <module address>
You should now have a new device called rfcomm2 in /dev. Confirm with:
ls /dev/rfcomm2
/dev/rfcomm2
Then I use picocom to read the output in real time:
sudo picocom /dev/rfcomm2