Sorry for the confusion. Let me explain in detail.
rfcomm is a deprecated command line of BlueZ which is the official linux bluetooth protocol stack.
The command of sudo rfcomm hci0 00:0E:12:34:56:67 1
does the following:
In that case we can grab /dev/rfcomm0 by using the serial input node from Node-RED and read the data. However, I want to avoid using rfcomm command line tool because it is deprecated.
The second way to do that is utilizing python socket module. However, socket module does not create virtual port/device as /dev/rfcomm0, hence we cannot grab it by using Node-RED Serial Input node. Here we can do three things:
- Find a way to bind created python socket to /dev/rfcomm0 (I am also working on this, first we need to manually create that port.).
- Find a node from Node-RED that can grab, rfcomm connection which is not virtually bound to that serial port.
- Find a bluetooth node from Node-RED which can do all.
The 2nd and 3th methods are the reason why I posted my question here.