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

write.cpp example incorrectly explains the difference between requests and commands #316

Open
kersson opened this issue Jun 13, 2024 · 0 comments · May be fixed by #318
Open

write.cpp example incorrectly explains the difference between requests and commands #316

kersson opened this issue Jun 13, 2024 · 0 comments · May be fixed by #318

Comments

@kersson
Copy link

kersson commented Jun 13, 2024

This comment is incorrect:

// NOTE: Alternatively, `write_command` can be used to write to a characteristic too.
// `write_request` is for unacknowledged writes.
// `write_command` is for acknowledged writes.
peripheral.write_request(uuids[selection.value()].first, uuids[selection.value()].second, contents);

Write requests are acknowledged and write commands are not acknowledged.

@kersson kersson linked a pull request Jun 14, 2024 that will close this issue
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 a pull request may close this issue.

1 participant