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. #186

Merged
merged 1 commit into from
Jul 24, 2024
Merged

[Breaking] Refactor NimBLEUUID. #186

merged 1 commit into from
Jul 24, 2024

Conversation

h2zero
Copy link
Owner

@h2zero h2zero commented Jul 21, 2024

  • 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.
  • msbFirst parameter has been removed from constructor as it was unnecessary, caller should reverse the data first or call the new reverseByteOrder method after.
  • 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 marked this pull request as ready for review July 22, 2024 15:55
@h2zero h2zero force-pushed the refactor-uuid branch 2 times, most recently from 98cd46c to 144465e Compare July 23, 2024 23:54
* 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 10d5891 into master Jul 24, 2024
94 checks passed
@h2zero h2zero deleted the refactor-uuid branch July 24, 2024 00:14
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