Wireless Communication Library Support Forum

Frameworks => Bluetooth Framework => Topic started by: Mobicasting on April 09, 2009, 11:29:01 AM

Title: WCL Device type
Post by: Mobicasting 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
Title: Re: WCL Device type
Post by: Mobicasting 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? :)
Title: Re: WCL Device type
Post by: Mobicasting 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;
            }
Title: Re: WCL Device type
Post by: Mike Petrichenko on April 09, 2009, 03:32:28 PM
http://help.btframework.com/doku.php?id=cods_vcl