Skip to content
This repository has been archived by the owner on May 18, 2022. It is now read-only.

reply to LL_VERSION_IND once per connection #154

Merged
merged 2 commits into from
Oct 17, 2020
Merged

reply to LL_VERSION_IND once per connection #154

merged 2 commits into from
Oct 17, 2020

Conversation

JOE1994
Copy link
Contributor

@JOE1994 JOE1994 commented Oct 17, 2020

Hello ! 馃

This PR is for issue #49 .
(relevant to Version Exchange procedure section of bluetooth 5.2 core specs)

I added a bool member to Connection that keeps track of
whether we had previously sent a Control PDU LL_VERSION_IND for the connection.
I also added a new variant VersionIndSent to enum LlcpError.

It is also mentioned in #49 that eventually we want to collapse all bool state variables to a single byte as bitflags,
but I didn't make that change in this PR. So I guess the issue should be kept open?

Thank you for reviewing this PR ! 馃憤

Copy link
Owner

@jonas-schievink jonas-schievink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looks nice!

rubble/src/link/connection.rs Outdated Show resolved Hide resolved
rubble/src/link/connection.rs Outdated Show resolved Hide resolved
@jonas-schievink jonas-schievink merged commit 29bafe3 into jonas-schievink:master Oct 17, 2020
@JOE1994 JOE1994 deleted the LL_VERSION_IND_once branch October 17, 2020 19:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants