Skip to content
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

examples: use getline() to read commands #723

Merged
merged 1 commit into from
Aug 8, 2023

Conversation

raiden00pl
Copy link
Contributor

examples: use getline() to read commands

The previous approach works only if the terminal is operating in cannonical mode (input available line-by-line), which is not always true. getline() ensures that commands are always read correctly.

With this change commands work properly on Apache NuttX

The previous approach works only if the terminal is operating in cannonical mode
(input available line-by-line), which is not always true.
getline() ensures that commands are always read correctly.
@mlasch
Copy link
Contributor

mlasch commented Aug 8, 2023

Hi @raiden00pl, thanks for your contribution. Nice to see on which platforms Wakaama is integrated.

There are no regression tests for Apache NuttX yet, so we can not guarantee that we won't break NuttX with future changes.

@mlasch mlasch merged commit bf81d08 into eclipse-wakaama:master Aug 8, 2023
30 checks passed
@raiden00pl
Copy link
Contributor Author

No problem with that. NuttX tries to be compatible with Linux as much as possible for a system dedicated to embedded applications, so it shouldn't be that easy to break NuttX support ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants