如何通过在C#中的蓝牙连接得到任何手机的MAC地址? [英] how to get MAC address of any mobile phone via bluetooth connection in c#?

查看:715
本文介绍了如何通过在C#中的蓝牙连接得到任何手机的MAC地址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须先建立手机与电脑之间的连接,然后我必须得到连接的手机的MAC地址时,我会得到一个MAC地址,然后我必须只需断开当前设备,搜索其他设备。

I have to first establish a connection between mobile phone and computer then i have to get a MAC address of that connected phone when i will get a MAC address then i have to simply disconnect the current device and search for the other device.

请帮我解决这个问题...........感谢。

please help me to solve this problem........... thanks.

推荐答案

在最近的Windows Mobile SDK和DTKs,有一个名为一个示例应用程序的 btsearch 枚举是发现和范围内的所有蓝牙设备。你总是可以从那里开始,选择什么样的看起来很有趣。

In the recent Windows Mobile SDKs and DTKs, there's a sample app called btsearch that enumerates all Bluetooth devices that are discoverable and within range. You could always start from there and pick what looks interesting.

我已经成功地用它自己没有问题。虽然只显示了基本知识,可以很容易地建立在并提取了好位。

I've used it successfully myself without problems. Although it only shows the basics, it's easy to build upon it and extract the good bits.

这篇关于如何通过在C#中的蓝牙连接得到任何手机的MAC地址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆