摘要: 传出COM端口和传入COM端口代表了通讯双方主动和被动的关系 传出COM端口 是Windows主动向串口蓝牙适配器发起连接时所使用的虚拟串口号 传入COM端口 是串口蓝牙适配器主动向Windows发起连接时所使用的虚拟串口号。 就是选择电脑蓝牙的主从模式. 用电脑上的蓝牙连接其他蓝牙适配器从机时,应 阅读全文
posted @ 2018-12-07 10:22 小雨滴答 阅读(2498) 评论(0) 推荐(0) 编辑
摘要: 一、手动添加ON_WM_DEVICECHANGE()消息 二、添加头文件#include <Dbt.h> 三、定义设备的GUID static const GUID GUID_DEVINTERFACE_LIST[] ={ // GUID_DEVINTERFACE_USB_DEVICE USB设备的G 阅读全文
posted @ 2018-11-27 10:11 小雨滴答 阅读(1477) 评论(0) 推荐(0) 编辑
摘要: A handle to a local Bluetooth radio, obtained by calling the BluetoothFindFirstRadio or similar functions, or the SetupDiEnumerateDeviceInterfances fu 阅读全文
posted @ 2018-11-19 10:38 小雨滴答 阅读(602) 评论(0) 推荐(0) 编辑
摘要: Enumeration handle to close, obtained with a previous call to the BluetoothFindFirstRadio function. 要关闭的枚举句柄,使用之前对BluetoothFindFirstRadio函数的调用获得。 返回值: 阅读全文
posted @ 2018-11-19 10:28 小雨滴答 阅读(210) 评论(0) 推荐(0) 编辑
摘要: Handle returned by a previous call to the BluetoothFindFirstRadio function. 由先前对BluetoothFindFirstRadio函数的调用返回的句柄。 On input, a pointer to where the ne 阅读全文
posted @ 2018-11-19 10:25 小雨滴答 阅读(260) 评论(0) 推荐(0) 编辑
摘要: Pointer to a BLUETOOTH_FIND_RADIO_PARAMS structure. The dwSize member of the BLUETOOTH_FIND_RADIO_PARAMS structure pointed to by pbtfrp must match the 阅读全文
posted @ 2018-11-19 10:15 小雨滴答 阅读(621) 评论(0) 推荐(0) 编辑
摘要: Size of the BLUETOOTH_DEVICE_INFO structure, in bytes. BLUETOOTH_DEVICE_INFO结构的大小(单位为字节)。 Address of the device. 设备地址 Class of the device. 设备的类。 Speci 阅读全文
posted @ 2018-11-19 09:42 小雨滴答 阅读(374) 评论(0) 推荐(0) 编辑
摘要: A handle of the local Bluetooth radio. 本地蓝牙无线电的句柄。 A pointer to a BLUETOOTH_DEVICE_INFO structure. Must be a previously found radio address. 指向BLUETOO 阅读全文
posted @ 2018-11-19 09:33 小雨滴答 阅读(554) 评论(0) 推荐(0) 编辑
摘要: The functions in this section are used for managing Bluetooth devices and services. Bluetooth is also supported by using the Windows Sockets programmi 阅读全文
posted @ 2018-11-08 11:41 小雨滴答 阅读(537) 评论(0) 推荐(0) 编辑
摘要: union,中文名“联合体、共用体”,在某种程度上类似结构体struct的一种数据结构,共用体(union)和结构体(struct)同样可以包含很多种数据类型和变量。 不过区别也挺明显: 结构体(struct)中所有变量是“共存”的——优点是“有容乃大”,全面;缺点是struct内存空间的分配是粗放 阅读全文
posted @ 2018-11-06 10:31 小雨滴答 阅读(215) 评论(0) 推荐(0) 编辑