Call read() before writing anything. Otherwise we might get an error: 'Transport endpoint is not connected
Make the /dev/rfcommX device to use easyly changeable using env variable