ZheChan

Results 5 comments of ZheChan

i fixed this bug, you can copy the code in class BerTlvParser, find function "parseWithResult" and "addChildren",add params "resultLevel": ``` Java private ParseResult parseWithResult(int resultLevel,int aLevel, byte[] aBuf, int aOffset,...

Android提供了获取配对设备的API

这个应该是硬件的问题,最好在搜索结果里面把设备名字isEmpty或者名字==“null”,还有mac地址为空的筛选掉,还有就是如果你只想搜索到自己想要的设备,可以在Scan的时候增加ScanFilter,可以根据Service的uuid来筛选

Android本身对于蓝牙扫描是有时间间隔、次数的限制,因为扫描会消耗大量的电量,如果你需要长时间扫描,建议你把ScanSetting里设置为低能耗扫描