蓝牙友好的名字 [英] Bluetooth friendly name
问题描述
我正在PC上写蓝牙服务器,我会在连接设备时通知用户。它与getpeername一起工作正常,但输出是mac-address - 不是很有用。如何获得更友好的名称或转换mac地址?
I'm writing a bluetooth server on PC and I would to inform the user when a device is connected. It works fine with getpeername, but the output is the mac-address - not very informative. How can get a more friendly name or convert the mac-address?
谢谢,
Nicholas
Nicholas
推荐答案
BluetoothGetDeviceInfo( http://msdn.microsoft。 com / en-us / library / aa362795.aspx )可能是最好的功能。 (我不记得是否使用通用的Winsock2名称查找
函数也可以。)
BluetoothGetDeviceInfo (http://msdn.microsoft.com/en-us/library/aa362795.aspx) is probably the best function to use. (I can't remember whether using the generic Winsock2 name lookup function will work also).
这篇关于蓝牙友好的名字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!