-
Notifications
You must be signed in to change notification settings - Fork 3k
Add flush to the BLE UART Service #4990
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
Conversation
If only buffer-full events and LF characters trigger the flush of the send buffer then only line-based communication can be implemented over the BLE UART Service. This patch extends the service API by adding an explicit `flush` method to force sending the buffer contents, thus enabling protocols with short (e.g., single character) messages.
@pan- please review |
@pan- Bump |
Bump for review @pan- |
Is there any way I can help the progress of this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm OK with the PR.
However, the UART service, as a whole, needs to be reworked. ATM there is no guarantee that the data has been correctly sent.
Is there anything else I should/could do? |
Thanks for the ping @akosthekiss. We're currently working on a release, so testing may be delayed by a few days. In the mean time I have marked this as in the "testing" phase of a PR. We should get to testing many things in the needs: CI category, and merge them, shortly after the release. |
Thanks for the update! |
/morph test |
Result: FAILUREYour command has finished executing! Here's what you wrote!
OutputTest failed! |
@theotherjimmy Could these tests be re-executed somehow, perhaps? I don't know what could have failed. |
/morph test |
Result: FAILUREYour command has finished executing! Here's what you wrote!
OutputTest failed! |
I'm a bit puzzled. In mbed Build Number 1358, the MAX32630FTHR/GCC_ARM target failed, while in Build 1378, it was the ARM-BEETLE-SOC/GCC_ARM. It was 3 tests that timed out in both runs: tests-mbedmicro-rtos-{queue,isr,signals}. Is this some kind of flakyness of the test suite? |
@0xc0170 @theotherjimmy @pan- May I ask some help on this? (I mean, on the strange timeouts.) |
Maybe, or an issue in the CI. Those failures are not related to the PR. |
/morph test |
1 similar comment
/morph test |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
OutputAll builds and test passed! |
If only buffer-full events and LF characters trigger the flush of
the send buffer then only line-based communication can be
implemented over the BLE UART Service. This patch extends the
service API by adding an explicit
flush
method to force sendingthe buffer contents, thus enabling protocols with short (e.g.,
single character) messages.
Status
READY
Migrations
NO