- 6
- 0
- 约7.64千字
- 约 8页
- 2017-05-22 发布于重庆
- 举报
C编程连接蓝牙设备,文件收发
现在很多电脑提供了蓝牙支持,很多笔记本网卡也集成了蓝牙功能,也可以采用USB蓝牙方便的连接手机等蓝牙设备进行通信。操作蓝牙要使用类库InTheHand.Net.Personal首先在项目中引用该类库;C#代码??static?void?Main(string[]?args)??{??????BluetoothRadio?bluetoothRadio?=?BluetoothRadio.PrimaryRadio;??????if?(bluetoothRadio?==?null)??????{??????Console.WriteLine(没有找到本机蓝牙设备!);??????}??????else??????{??????Console.WriteLine(ClassOfDevice:??+?bluetoothRadio.ClassOfDevice);??????Console.WriteLine(HardwareStatus:??+?bluetoothRadio.HardwareStatus);??????Console.WriteLine(HciRevision:??+?bluetoothRadio.HciRevision);??????Console.WriteLine(HciVersion:??+?bluetoothRadio.HciVersion);??????Console
原创力文档

文档评论(0)