Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
I want to be able to establish a connection with a bt device and maintain its connectivity even after reboot and shutdown, so that the winform app can reconnect to the bt device after reboot and shutdown.
The thing is I have never worked with bt devices before and I really need your help to do this.

I need this winform app to connect to a bt device automatically after it has been connected the first time, utomatically, unless you tell the app to connect to another bt device. I made some research and found a way to connect to a bt device, after you click a button, which is a great improvement over not knowing anything about bt connections in c#. Now I need to find a way to make the device reconnect to the winform app in a windows pc, so that it is available for use in the app automatically, without user interaction.

What I have tried:

http://stackoverflow.com/questions/16553997/c-sharp-console-application-talking-to-arduino-via-bluetooth
Posted
Updated 10-May-17 10:48am
v2
Comments
[no name] 9-May-17 21:42pm    
So... what you have tried is..... nothing.

1 solution

Your "question" has very little to do with BlueTooth, but everything to do with maintaining a state inside your application, serializing that state to a file or other storage (saving), deserializing it, and making sure the device matches up with the state your code is maintaining.

Nobody is going to be more specific and you definitely are not getting any code samples for this.

YOU are going to have to study state machines, data structures, BlueTooth communication, and hopefully your device supports what you want to do to.
 
Share this answer
 

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