以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  手机版获取手机蓝牙地址  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=104286)

--  作者:fubblyc
--  发布时间:2017/7/26 19:18:00
--  手机版获取手机蓝牙地址
老师,电脑的蓝牙地址我参考了论坛之前的帖子知道怎么获取,那手机版的呢,尤其是获取本手机所连接设备的地址。。。
电脑蓝牙:http://www.foxtable.com/bbs/dispbbs.asp?BoardID=2&ID=76317&skin=0

以下代码手机版就不对了。。。
Dim wb As New weui
Dim e As  RequestEventArgs = args(0)
wb.AddForm("","form1","lanya.htm")
Dim bluetoothRadio = InTheHand.Net.Bluetooth.BluetoothRadio.PrimaryRadio
If bluetoothRadio Is Nothing Then
    With wb.AddInputGroup("form1","ipg1","蓝牙地址")
        .AddInput("btmsl","蓝牙地址","text").value = "无"
    End With
Else
    output.show("LocalAddress: " & bluetoothRadio.LocalAddress.tostring)
    With wb.AddInputGroup("form1","ipg1","蓝牙地址")
        .AddInput("btmsl","蓝牙地址","text").value = bluetoothRadio.LocalAddress.tostring
    End With
End If
    e.WriteString(wb.Build)
[此贴子已经被作者于2017/7/26 19:18:15编辑过]

--  作者:有点甜
--  发布时间:2017/7/26 20:01:00
--  

 网页没有这种功能,用微信可以获取一些信息,但比较麻烦

 

https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1443448133

 


--  作者:fubblyc
--  发布时间:2017/7/26 20:06:00
--  
嗯嗯,我看了,我要获取的是蓝牙扫码枪的蓝牙地址,他那个好像只限beacon的信息。 是不是这样呢。。。不然就实现不了了是吗?。。
--  作者:有点甜
--  发布时间:2017/7/26 20:12:00
--  
 不行,实现不了。网页没有对应的权限。
--  作者:fubblyc
--  发布时间:2017/7/26 20:23:00
--  
好的,谢谢老师