MSDN上搜索下载 PSDK-x86.exe 头文件 Microsoft Platform SDK for Windows Server 2003 R2\Include 库文件 Microsoft Platform SDK for Windows Server 2003 R2\Lib 参见"bluetooth essentials for programmers"第4章的内容。要链接两个库 ws2_32.lib,irprops.lib,可以直接在VS中设置或在程序中加入下面两行代码。 #pragma comment(lib,"ws2_32.lib") #pragma comment(lib,"irprops.lib")不过这个只支持用windows默认蓝牙驱动的设备,如果是厂商自己的驱动,可能要下载厂商的SDK
但不是通过蓝牙,通过IP的 可参考
private static String address = "00:11:03:21:00:43"; // <==要连接的蓝牙设备MAC地址
先发两句,lz给分后再加加o(╯□╰)o
头文件
Microsoft Platform SDK for Windows Server 2003 R2\Include
库文件
Microsoft Platform SDK for Windows Server 2003 R2\Lib
参见"bluetooth essentials for programmers"第4章的内容。要链接两个库 ws2_32.lib,irprops.lib,可以直接在VS中设置或在程序中加入下面两行代码。
#pragma comment(lib,"ws2_32.lib")
#pragma comment(lib,"irprops.lib")不过这个只支持用windows默认蓝牙驱动的设备,如果是厂商自己的驱动,可能要下载厂商的SDK