I am trying to write a PC client with Bluetooth that can perform some simple interactive actions with an Android device via Bluetooth. Then I found out that you can use Windows Socket programming to achieve, however, when I try to create a new socket, this link is a link .
Here are my error codes:
Socket tempSocket = new Socket(AF_BTH, SOCK_STREAM, BTHPROTO_RFCOMM);
So here is my question: does this mean that I have to use C ++ for this? If not, how to create a new socket with bluetooth-type under C #?
source share