a-voyager / bluetoothhelper Goto Github PK
View Code? Open in Web Editor NEWBluetooth Helper Library.—-蓝牙操作库
Bluetooth Helper Library.—-蓝牙操作库
发送错误,报onConnectionLost()里面的这个错误,应该怎么解决啊!!谢谢谢谢
java.io.IOException: Broken pipe
如果有接收模块会更好
蓝牙扫描,之前做的就是加上一个时间,超过这个时间,取消扫描
出现错误:
Failed to resolve: com.github.a-voyager:BluetoothHelper:f71d40a98b
Show in File
Show in Project Structure dialog
@a-voyager 你好,非常喜欢这个库概念。但是我只看到了有关发送的API,并没有看到有关其他设备如何接收信息,不知您是怎么设计的?是因为使用没有正确的接受信息的API,所以才导致 #6 这个issue吗?希望您能够提供下帮助。
In line:
we have
void onNewDeviceFounded(BluetoothDevice device);
but it should be
void onNewDeviceFound(BluetoothDevice device);
报错onError java.io.IOException: read failed, socket might closed or timeout, read ret: -1。看了一下源码。好像没有发送消息的相关代码。被注释掉了。这个有办法处理吗?
BtHelperClient: prepare to connect: FC:64:BA:94:23:96 小米手机
11-24 14:34:55.926 21733-9464/com.uniview.mybluetooth W/BluetoothAdapter: getBluetoothService() called with no BluetoothManagerCallback
11-24 14:35:02.376 21733-9464/com.uniview.mybluetooth W/System.err: java.io.IOException: read failed, socket might closed or timeout, read ret: -1
我在网上找了以下解决方案:http://stackoverflow.com/questions/18657427/ioexception-read-failed-socket-might-closed-bluetooth-on-android-4-3
@a-voyager 不知道这个问题你遇到没有。
错误信息如下:
Fatal signal 11 (SIGSEGV) at 0x00000008 (code=1), thread 22903 (pool-12-thread-)
: backtrace:
12-02 17:40:02.966 21840-21840/? I/DEBUG: #00 pc 0004ea86 /system/lib/libdvm.so
12-02 17:40:02.966 21840-21840/? I/DEBUG: #1 pc 00001dad /system/lib/libnativehelper.so (jniGetFDFromFileDescriptor+80)
12-02 17:40:02.966 21840-21840/? I/DEBUG: #2 pc 0006dcd1 /system/lib/libandroid_runtime.so
12-02 17:40:02.966 21840-21840/? I/DEBUG: #3 pc 000204cc /system/lib/libdvm.so (dvmPlatformInvoke+112)
12-02 17:40:02.966 21840-21840/? I/DEBUG: #4 pc 00051157 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398)
12-02 17:40:02.966 21840-21840/? I/DEBUG: #5 pc 00000214 /dev/ashmem/dalvik-jit-code-cache (deleted)
还有好多这种,不知大家可遇到过,有什么解决办法吗?谢谢
我发送打印数据的指令为byte[] 时,打印出来的是乱码。
请问是否支持 byte[] 发送呢
我看见你的demo中初始化用的是 btHelperClient = BtHelperClient.from(MainActivity.this);。
那请问我怎么调用你在BtHelperClient类里面写的搜索和链接等方法呢
能不能发后不管设备存不存在?
你好,demo怎么进行蓝牙连接。急急急,谢谢
扫描到蓝牙怎么连接,,没有连接的方法
毕竟BLE才是主流
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.