I am currently working on a mobile application with VS2008 which has a capacbility of periodically checking if the desired bluetooth device is in range or not. At the moment, I am using System.windows.form.Timer to do this. However, I have found that it will slow down the application, even worse, it will crash sometimes.
Does anyone have any better idea of how to do periodically checking without using the System.windows.form.timer? I am currently using 32 feets for the bluetooth.
Thanks for any helps in advance.
Regards,
Charles
Add a background thread that sleeps for X amount of time (you choose how long) then every once in a while (based on how long the thread sleeps) it will run (wake up and execute), check if the bluetooth is in range and give you some form of feed back, then it will go to sleep again.
Summed up
Thread goes to sleep again