Skip to content

Conversation

@thekurtovic
Copy link
Collaborator

@thekurtovic thekurtovic commented Nov 14, 2024

  • Adds parameter rcPtr to NimBLEDevice::startSecurity, default value works as the original method.
    • rcPtr: if not nullptr, will allow caller to obtain the internal return code.
  • Adds parameter async to NimBLEClient::secureConnection, default value works as the original method.
    • async; if true, will send the secure command and return immediately with a true value for successfully sending the command, else false.

Copy link
Owner

@h2zero h2zero left a comment

Choose a reason for hiding this comment

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

Looks good, a few comments for discussion.

@h2zero
Copy link
Owner

h2zero commented Nov 16, 2024

This will need to be refactored after #227 is merged, just a heads up.

* Adds parameter `rcPtr` to `NimBLEDevice::startSecurity`, default value works as the original method.
* * `rcPtr`: if not nullptr, will allow caller to obtain the internal return code.
* Adds parameter `async` to `NimBLEClient::secureConnection`, default value works as the original method.
* * `async`; if true, will send the secure command and return immediately with a true value for successfully sending the command, else false.
@h2zero h2zero force-pushed the feat-async-secure branch from 9196c95 to f107061 Compare December 2, 2024 16:34
@h2zero h2zero merged commit 15392bf into h2zero:master Dec 2, 2024
58 checks passed
@thekurtovic thekurtovic deleted the feat-async-secure branch December 4, 2024 02:43
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