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

Refactor NimBLEAttValue. #701

Merged
merged 1 commit into from
Jul 22, 2024
Merged

Refactor NimBLEAttValue. #701

merged 1 commit into from
Jul 22, 2024

Conversation

h2zero
Copy link
Owner

@h2zero h2zero commented Jul 21, 2024

  • Add length parameter to setValue() templates, with defaults for backward compatibility.
  • Changed setValue(const char*) to add an optional length parameter so that a NULL character can be included, defaults to strlen.
  • Moved non-inline functions to NimBLEAttValue.cpp file.
  • Corrected includes to permit compilation as a stand-alone utility.
  • Removed repeated code in setValue() by using append() after clearing the value.
  • General code cleanup.

* Add length parameter to `setValue()` templates, with defaults for backward compatibility.
* Changed `setValue(const char*)` to add an optional length parameter so that a NULL character can be included, defaults to strlen.
* Moved non-inline functions to `NimBLEAttValue.cpp` file.
* Corrected includes to permit compilation as a stand-alone utility.
* Removed repeated code in `setValue()` by using `append()` after clearing the value.
* General code cleanup.

# Conflicts:
#	CMakeLists.txt
@h2zero h2zero merged commit b713cbf into master Jul 22, 2024
62 checks passed
@h2zero h2zero deleted the refactor-attvalue branch July 22, 2024 14:13
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