New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to send more than 20 bytes of data #3
Comments
Hi,
Right now the BLE library does not support sending longer packets automatically, but I guess it should, so I'll add this functionality soon. I also plan to add some more related features (callbacks, etc). |
I'll add support for this feature soon. |
This should now work with version 2 of the library. |
how can I send more that 20 bytes over BLE in swift 3 . I am using write without response . |
Hmm... It's an Android library, not iOS. But to answer your question, your device needs to support longer mtu. iOS will automatically request high mtu immediately after connecting. Use CBPeripheral.maximumWriteValueLength(for:) to get the maximum supported length. |
Hi, I send 2 packages but after the first package, flag mOperationInProgress became true and when I send the second package, package doesn't sending because mOperationInProgress == true. How I can fix it? |
Hi, please open a new issue. Describe what version of the library are you using. |
@philips77 , even with the latest vestion of the lib, the MTU exchange is not supported for Android 4 (like KitKat), right? Here is a exchange flow of Nordic SoftDevice S132 , the |
Can't be done. Support for higher mtu was added in Lollipop. |
Hi, |
No, this can't be enabled on Android. DLE support was added in Android 6, as far as I remember, and most newer phones do use it. Phones updated to 6 may not support this feature. There is also no API to check if DLE is working or now, other than just trying to calculate the bandwidth and estimating based on that. |
I want to send more than 20 bytes in the data, how to deal with.
The text was updated successfully, but these errors were encountered: