jgeiger
Posts: 21
Joined: Sat Sep 20, 2008 2:14 am

Detect Device

Sat Sep 20, 2008 2:18 am

I am about to begin development on an application for PC and have come across a question.

My laptop, as many do, has a wireless button that enables and disables the WiFi and Bluetooth devices. When I load the FindAndConnect sample program when my device is enabled, all things work great. But when it's disabled, the software just... don't do anything.

So, is there a way to detect that there is no bluetooth device installed on a computer and fire off a warning or at least catch the error so I can adjust form control to prevent it's use?

Jason

Jonas
Posts: 2319
Joined: Mon Jan 09, 2006 2:20 pm
Location: Sweden

RE: Detect Device

Sun Sep 21, 2008 11:28 pm

Look at Network.IsHardwareAvailable.

Regards,
Jonas

jgeiger
Posts: 21
Joined: Sat Sep 20, 2008 2:14 am

RE: Detect Device

Mon Sep 22, 2008 7:47 pm

Excellent, I had not seen this yet, that should work great.

Return to “BlueTools”