Frameworks > Bluetooth Framework

Bluetooth adapter not found scenario

<< < (2/2)

Mike Petrichenko:
Aha. OK.
I think the better and fast way to do what you need is:

1. Write procedure
wclBluetoothRadio GetRadio()
{
  if (wclAPI.Transports.Contains(trBluetooth)
  {
     wclBluetoothRadios Radios = wclBluetoothDiscovery.EnumRadio();
     wclBluetoothRadio Radio = Radio[0];
     Radios = null;
     return Radio;
   }
   return null;
}

2. Write OnChanged event for wcvlAPI and when it called (and when your app start) call the procedure.
3. If the procdure returns null show message about No Radio.

Navigation

[0] Message Index

[*] Previous page

Sitemap 1 2 3 4 5 6 7 
Go to full version