HBluetooth icon indicating copy to clipboard operation
HBluetooth copied to clipboard

搜索问题

Open zz5360 opened this issue 2 years ago • 8 comments

手机蓝牙可以搜索到,通过程序不行,Android 11

zz5360 avatar Dec 14 '21 04:12 zz5360

手机蓝牙可以搜索到,通过程序不行,Android 11

确认开了位置权限吗?

g-HJY avatar Dec 14 '21 06:12 g-HJY

我直接拿源码运行的,忘记开权限,感谢

zz5360 avatar Dec 14 '21 07:12 zz5360

蓝牙名为空这个你好的解决办法么

zz5360 avatar Dec 14 '21 07:12 zz5360

嗯嗯,不客气,我当时设计的时候为了框架的纯度,没有加入动态申请权限这部分功能,后面我考虑下如果需要可以加到框架里面来

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2021年12月14日(星期二) 下午3:32 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [g-HJY/HBluetooth] 搜索问题 (Issue #4)

我直接拿源码运行的,忘记开权限,感谢

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

g-HJY avatar Dec 14 '21 07:12 g-HJY

你好,蓝牙名称是由嵌入式提供的,如果他没写就为空

------------------ 原始邮件 ------------------ 发件人: "g-HJY/HBluetooth" @.>; 发送时间: 2021年12月14日(星期二) 下午3:32 @.>; @.@.>; 主题: Re: [g-HJY/HBluetooth] 搜索问题 (Issue #4)

蓝牙名为空这个你好的解决办法么

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

g-HJY avatar Dec 14 '21 07:12 g-HJY

手机蓝牙可以直接获取到名称,通过程序就是空,这个没明白

zz5360 avatar Dec 14 '21 07:12 zz5360

你是低功耗蓝牙吗,如果是的话可以试下调用实时更新设备名称方法,设置为true试试: bleConfig.liveUpdateScannedDeviceName(true)

------------------ 原始邮件 ------------------ 发件人: "g-HJY/HBluetooth" @.>; 发送时间: 2021年12月14日(星期二) 下午3:40 @.>; @.@.>; 主题: Re: [g-HJY/HBluetooth] 搜索问题 (Issue #4)

手机蓝牙可以直接获取到名称,通过程序就是空,这个没明白

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

g-HJY avatar Dec 14 '21 07:12 g-HJY

同问,我用经典蓝牙搜索时候,也是没有名称,只有MAC地址

fengtech avatar Aug 26 '22 04:08 fengtech