Comments (7)
In 1.2.0, what I would do, is to split data before calling writeCharacteristic and then call it multiple times. You may find an example in nRF Toolbox all in bleLib1 branch in UartManager.
from android-ble-library.
from android-ble-library.
Thank you very much.
from android-ble-library.
Hi,
Sorry to keep bothering you. In our project, we only need for client (Android phone) to communicate with one type of server (device) through BLE. I have also verified that I can make the packet size larger through request_mtu(517) up to 514 (517 - 3) both for client (min sdk is Lollipop) and the server (device). So what do you think about enlarging the packet size up to 514 first and send/receive data. If the data size is bigger than 514, can I still chop it to many packets through queue? Does that sound reasonable with Android-BLE-Library 1.2.0 ? Or mtu should be only 23 (20 available) for chopping the data to many packets?
Thanks.
from android-ble-library.
Yes, you may use Android-BLE-Library 1.2.0. Longer MTU (higher than 23) is supported on Android since Android 5 Lollipop. Use the requestMtu method to request higher MTU. You should get a callback when MTU selected.
from android-ble-library.
Longer MTUs must also be supported by the other side. The callback will give you the MTU both side have agreed on.
from android-ble-library.
Thanks again. ;)
from android-ble-library.
Related Issues (20)
- Ask a question, thank you HOT 1
- Want to get the characteristic on which the data was received for the characteristics I have subscribed to get notified for HOT 2
- Concurrent modification exception while notifying device disconnected
- Disconnect not working on various Samsung devices HOT 2
- No response from writeCharacteristic HOT 5
- Question: Will this allow me to send HCI Level Commands? HOT 1
- I stoped receiving notifications even when i have still not get all data HOT 23
- Sometimes causing system Bluetooth to crash. HOT 4
- Notification does not clear after setup a device HOT 3
- Connection interval changes on its own HOT 3
- OTA upgrade problem HOT 1
- Cannot connect the BLE device HOT 6
- A couple of questions, possibly bugs HOT 4
- BLE Scanner stop working
- Scanner issue
- Internal write characteistic and dead system exception HOT 1
- Issue with auto connect HOT 1
- Need help with configuration HOT 1
- Issue with disconnect question HOT 3
- Oppo not show Bonding message HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-ble-library.