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

fix: change publish period steps and resolution parsing #22

Merged
merged 1 commit into from
Oct 27, 2023
Merged

fix: change publish period steps and resolution parsing #22

merged 1 commit into from
Oct 27, 2023

Conversation

badrbouslikhin
Copy link
Contributor

This PR addresses an issue with the way the Publish Period step resolution and number of steps were being parsed.

Basically, there was a mistake in the bit numbering, which was causing the publishing period setting to be incorrect.

According to the Bluetooth Mesh specification v1.0.1, the 2 most significant bits represent the step resolution, while the 6 least significant bits represent the number of steps.

I've made the necessary updates to the tests to reflect this change.

Screenshot 2023-10-27 at 14 10 46

How publish period is calculated in nrf sdk for Mesh - Nordic Q&A - Nordic DevZone - Nordic DevZone

Copy link
Member

@lulf lulf left a comment

Choose a reason for hiding this comment

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

Thank you! 🚀

@lulf lulf merged commit d93b61e into drogue-iot:main Oct 27, 2023
1 check passed
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