Wireless Communication Library Support Forum
Frameworks => Bluetooth Framework => Topic started 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
-
Found:
Device.GetClassOfDevice(e.Radio, ref type);
But how can i translate the type uint i get to something useful? :)
-
Got: ( enum BluetoothPhone { CELLULAR, SMARTPHONE, UNKNOWN } )
switch (type) {
case 5898756:
ptype = BluetoothPhone.CELLULAR;
break;
case 5898764:
ptype = BluetoothPhone.SMARTPHONE;
break;
}
-
http://help.btframework.com/doku.php?id=cods_vcl