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

[Breaking] Refactor NimBLEUUID. #702

Merged
merged 1 commit into from
Jul 23, 2024
Merged

[Breaking] Refactor NimBLEUUID. #702

merged 1 commit into from
Jul 23, 2024

Conversation

h2zero
Copy link
Owner

@h2zero h2zero commented Jul 22, 2024

  • msbFirst parameter has been removed from constructor as it was unnecessary, caller should reverse the data first or call the new reverseByteOrder method after.
  • getNative method replaced with getBase which returns a read-only pointer to the UUID size underlying.
  • Added reverseByteOrder method, this will reverse the bytes of the UUID, which can be useful for advertising/logging.
  • Added getValue method, which returns a read-only uint8_t pointer to the UUID value.
  • Removed m_valueSet member variable, bitSize() can be used as a replacement.
  • General code cleanup.

* msbFirst parameter has been removed from constructor as it was unnecessary,
caller should reverse the data first or call the new `reverseByteOrder` method after.
* `getNative` method replaced with `getBase` which returns a read-only pointer to the UUID size underlying.
* Added `reverseByteOrder` method, this will reverse the bytes of the UUID, which can be useful for advertising/logging.
* Added `getValue` method, which returns a read-only `uint8_t` pointer to the UUID value.
* Removed `m_valueSet` member variable, `bitSize()` can be used as a replacement.
* General code cleanup.
@h2zero h2zero merged commit 2cedbf5 into master Jul 23, 2024
62 checks passed
@h2zero h2zero deleted the refactor-uuid branch July 23, 2024 23:47
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.

1 participant