Wireless Communication Library Support Forum
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Login
Register
Wireless Communication Library Support Forum
»
Frameworks
»
Bluetooth Framework
»
WCL Device type
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: WCL Device type (Read 15611 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
Logged
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?
Logged
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;
}
Logged
Mike Petrichenko
Bluetooth Framework Developer
Administrator
Hero Member
Posts: 3675
Karma: 1000
Re: WCL Device type
«
Reply #3 on:
April 09, 2009, 03:32:28 PM »
http://help.btframework.com/doku.php?id=cods_vcl
Logged
Bluetooth Framework
IrDA Framework
Serial Framework
WiFi Framework
Print
Pages: [
1
]
Go Up
« previous
next »
Wireless Communication Library Support Forum
»
Frameworks
»
Bluetooth Framework
»
WCL Device type
Sitemap
1
2
3
4
5
6
7