RxBLE | 使用 RxJava 封装的低功耗蓝牙类库 | Reactive Programming library
kandi X-RAY | RxBLE Summary
kandi X-RAY | RxBLE Summary
这是一个使用 RxJava 封装的低功耗蓝牙类库。封装了低功耗蓝牙的连接,写入数据,读取数据和监听硬件特定通道数据改变的功能。关于低功耗蓝牙的入门介绍可以参阅 我的简书博客.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Performs a search synchronous blocking search
- Scanle device scan
- Wraps a callback on a Bluetooth device
- Returns the BluetoothLeSearcher instance
- Stop scan
- Initializes Bluetooth LEB2
- Connect to server
- Perform search
- Returns the value of a Bluetooth device property
- Checks the given channel and call the appropriate action if available
- Writes a single characteristic to the device
- Connects to a Bluetooth device
- Connect to the GATT server
- Register notification for a Bluetooth device
- Enable or disables a notification for a given service
- Writes the Rssian to the Parcel object
- Compares two BLED devices
- Read a characteristic
RxBLE Key Features
RxBLE Examples and Code Snippets
Community Discussions
Trending Discussions on RxBLE
QUESTION
Okay, so I'm having some very odd behaviour that doesn't make much sense in my app.
My app uses BLE and I have a static class which I initialize on app launch, this typically works with no issue.
Today I made a single change in my app which was to update this:
...ANSWER
Answered 2020-Feb-21 at 16:14So the issue was the version of the rxandroidble library was incompatible with the new firebase messaging.
When I updated from
implementation 'com.polidea.rxandroidble:rxandroidble:1.4.3'
to
implementation 'com.polidea.rxandroidble:rxandroidble:1.7.1'
the crash stopped.
QUESTION
I working on transfering files from smartphone to peripheral device over BLE.
Sending data over BLE is slow (data transfer is being implemented using overwriting one 20 bytes long characterisc). Slow speed is not a problem, because the size of files is really small also (up to 1MB).
In trivial tests everything works good. As long as I try to run file transfer automatically in a loop (e.g. leave it running over night jsut for test purposes), on device with Bluetooth standard 4.2 after short time Android is spamming following content into Logcat :
...ANSWER
Answered 2020-Feb-05 at 15:53from Android api level 21 onwards you have the ability to request a larger MTU size from the peripheral device you are sending to as mentioned here. This will allow you to send up to a packet of 517 bytes and this makes your transfer relatively faster than sending oackets of 20 bytes. However this is possible only if your ble device supports a larger MTU size. If you plan to do firmware updates I would suggest both your peripheral device and the smart phone app should use a proper firmware update protocol and that may also depend on the manufacturer of the bluetooth chip used on your peripheral device. Hope this helps.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install RxBLE
You can use RxBLE like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the RxBLE component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page