Is it possible to monitor discovering process when using Google Nearby Connections 2.0?

↘锁芯ラ 提交于 2019-12-11 07:40:01

问题


I have been playing around with Google Nearby Connections 2.0 sample program: walkietalkie. I ran the APP on several android phones and tablets. I usually put one device on advertising mode and other devices in discovering mode very close by. The devices sometimes discover successfully but also fail to discover frequently.

Is there a way to monitor the Bluetooth discovering process to get more information? I suspect Bluetooth pairing issue.


回答1:


You can filter for the log tags 'NearbyConnections' and 'NearbyMediums'

adb logcat NearbyConnections:* NearbyMediums:* *:S

That will print out any warnings and/or errors that occur. If you find a device that's particularly troublesome, give me the model number and I'll add it to our test suite. [Disclaimer: I work on Nearby Connections]



来源:https://stackoverflow.com/questions/45551237/is-it-possible-to-monitor-discovering-process-when-using-google-nearby-connectio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!