Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a sensor and a Bluetooth dongle( HC 05) with SPP protocol. We have to connect the sensor to the PC via Bluetooth in which we made our game in unity 3D. The problem now is i have to write a program for the Bluetooth so that 1)unity search for the sensor ( the sensor will be having a mac address and we will be having 5 sensors, other than those 5 sensors it will not allow any other sensor to be paired with, it will reject the pairing). 2) after searching for the sensor it will start pairing with PC in which our unity is installed. i have to write Bluetooth programming, i only know a little bit of C language only. I tried searching online but the programming is for Bluetooth API for android only. I am new to this problem, so please help me from the basics. It would be of great help. Thank you.


What I have tried:

i tried searching everywhere but the codes i found were of the android Bluetooth API and i have little knowledge of this , so i need to start it from the beginning. how should i do that?
Posted
Updated 28-Jan-20 19:58pm

1 solution

 
Share this answer
 
Comments
CPallini 29-Jan-20 6:24am    
5.
Maciej Los 29-Jan-20 9:01am    
Thank you, Carlo.
upasanas1403 29-Jan-20 23:32pm    
so, i should start from knowing how Bluetooth works and then write the code in C# for sending and receiving files from sensor and PC?
Maciej Los 30-Jan-20 13:29pm    
Of course!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900