Author Topic: WCL Device type  (Read 7383 times)

Mobicasting

  • Guest
WCL Device type
« on: April 09, 2009, 11:29:01 AM »
How do i know what type of device it is? ( smart or cellular )

On discovery the BluetoothDevice only has the Address variabel?

Thanks

Mobicasting

  • Guest
Re: WCL Device type
« Reply #1 on: April 09, 2009, 11:37:08 AM »
Found:

Device.GetClassOfDevice(e.Radio, ref type);

But how can i translate the type uint i get to something useful? :)

Mobicasting

  • Guest
Re: WCL Device type
« Reply #2 on: April 09, 2009, 11:57:04 AM »
Got:  ( enum BluetoothPhone { CELLULAR, SMARTPHONE, UNKNOWN } )

switch (type) {
                case 5898756:
                    ptype = BluetoothPhone.CELLULAR;
                    break;
                case 5898764:
                    ptype = BluetoothPhone.SMARTPHONE;
                    break;
            }

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: WCL Device type
« Reply #3 on: April 09, 2009, 03:32:28 PM »

 

Sitemap 1 2 3 4 5 6 7