Move session status changed callback from device to session callbacks #309
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Type
Goals
Simplify registering for session callbacks. The existing logic had the session status changed callback in the device event callbacks. The reasoning was that the
UwbDevice
would probably need to manage sessions even if the session clients went away. With the Windows WinRT API implementation, this is not done separately in the service and so isn't needed in the underlying library code.Technical Details
OnSessionStatusChanged
callback fromUwbDeviceEventCallbacks
toUwbSessionEventCallbacks
and associated connector code handling tokens and registered callbacks.std::format
, reducing some verbosity in both the code and the log messages.UwbConnector::HandleNotifications
.nocli
logging configuration, enabling all logs to be forwarded to an attached debugger, if present.Test Results
Ran some ad-hoc scenarios with the simulator driver and verified there were no regressions.
Reviewer Focus
Future Work
std::format
and/orstd::vformat
.Checklist
all
compiles cleanly.