davistsin / bluetoothlelibrary Goto Github PK
View Code? Open in Web Editor NEW一个简单易用的低功耗蓝牙库。操作简单、支持连发无需延时、自带队列管理、支持多通知等、可根据UUID、Name、物理地址过滤扫描。
License: MIT License
一个简单易用的低功耗蓝牙库。操作简单、支持连发无需延时、自带队列管理、支持多通知等、可根据UUID、Name、物理地址过滤扫描。
License: MIT License
请问怎么自动配对?
在 ScanFilter 里面对mac地址进行过滤时,没有忽略大小写,进行开发时扫描出来的是大写mac地址,而服务器给的是小写mac地址,导致匹配不上,没有扫描出对应的设备
if (mDeviceAddress != null
&& (device == null || !mDeviceAddress.equals(device.getAddress()))) {
return false;
}
建议将 equals()方法改为 忽略大小写的 equalsIgnoreCase() 方法
各位好!
在过去的一年,本人由于工作变动和转型(目前在做Java、Node.js后端),蓝牙库已经很长一段时间没有更新,I am so sorry。我将重启这个维护,致力于与iOS的蓝牙API一样的体验。
致谢。
麻烦您了
OPPO R9S扫描不到设备,其他设备扫描正常....大佬
蓝牙设备向手机连续发两次数据a和b,手机在onCharacteristicChanged接受到了a和b,但是在封装的setOnNotificationListener 却收到b,b
1、RT
2、按名称连接时,名称是否可以模糊?
android 6.0以上ble notify方式 数据丢失挺严重
正常1s接受100组数据 结果3s才能接受100组数据
请问有解决办法吗
这个框架可以用来放设备指令吗?
已连接了设备再去连接其他设备,无法连接,可不可以在连接的状态中连接新的设备
请问一下,为什么我下载运行你的demo没有任何反应?
我看了你的代码,是用一个textview来显示信息,可是运行起来没有半点反应。
请问一下,针对不同手机平台(如小米、华为),你是如何去做兼容的?我是在不同Android版本去调用不同的方法,但不知道对于不同手机平台是如何兼容蓝牙的?麻烦你告知一下,谢谢
我想在service中做扫描,你的库就不能用了,你应该把传人的Activity 修改成context就行
mBluetoothLe.setScanPeriod(20000)
// .setScanWithServiceUUID(BluetoothUUID.SERVICE)
.setReportDelay(0)
.startScan(this);
Error:(47, 13) Failed to resolve: com.qindachang:BluetoothLELibrary:0.1.0
Show in File
Show in Project Structure dialog
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.