I am trying to develop an application to do connection and pairing for different profile of bluetooth such as serialport profile, handsfree profile and hid profile. Does anyone have any idea how I can find a sample source code to do those profiles?
You can use the Serial2 library to connect two paired devices with the virtual serial ports.
It will require however that the ports will be manually configured by the user.