-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Add passcode display length field to UDC messages #40696
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request introduces a passcodeLength
field to the CommissionerDeclaration
in User-Directed Commissioning. While the field and its accessors are added to the header file, the implementation for serializing and deserializing this new field in WritePayload
and ReadPayload
respectively appears to be missing from this pull request. Without these changes, the new field will not be correctly communicated.
My review includes suggestions to use a standard integer type instead of the non-standard uint4_t
for better portability and to fix a minor typo in a log message.
src/protocols/user_directed_commissioning/UserDirectedCommissioning.h
Outdated
Show resolved
Hide resolved
src/protocols/user_directed_commissioning/UserDirectedCommissioning.h
Outdated
Show resolved
Hide resolved
src/protocols/user_directed_commissioning/UserDirectedCommissioning.h
Outdated
Show resolved
Hide resolved
PR #40696: Size comparison from ad7752d to fbf7c6f Full report (6 builds for cc32xx, nrfconnect, realtek, stm32)
|
PR #40696: Size comparison from ad7752d to 034fbad Full report (35 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #40696 +/- ##
==========================================
+ Coverage 50.72% 50.78% +0.06%
==========================================
Files 1356 1358 +2
Lines 99345 99496 +151
Branches 12876 12881 +5
==========================================
+ Hits 50396 50534 +138
- Misses 48949 48962 +13 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
PR #40696: Size comparison from ad7752d to 5898336 Full report (35 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
|
PR #40696: Size comparison from ad7752d to 33cae5d Increases above 0.2%:
Full report (35 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
|
@@ -476,6 +480,7 @@ matter::casting::core::IdentificationDeclarationOptions * convertIdentificationD | |||
cppIdOptions->mCommissionerPasscode = env->GetBooleanField(jIdOptions, commissionerPasscodeField); | |||
cppIdOptions->mCommissionerPasscodeReady = env->GetBooleanField(jIdOptions, commissionerPasscodeReadyField); | |||
cppIdOptions->mCancelPasscode = env->GetBooleanField(jIdOptions, cancelPasscodeField); | |||
cppIdOptions->mPasscodeLength = env->GetIntField(jIdOptions, passcodeLengthField); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
INFO ../../examples/tv-casting-app/android/App/app/src/main/jni/cpp/support/Converters-JNI.cpp:483:53: error: implicit conversion loses integer precision: 'jint' (aka 'int') to 'uint8_t' (aka 'unsigned char') [-Werror,-Wimplicit-int-conversion]
INFO 483 | cppIdOptions->mPasscodeLength = env->GetIntField(jIdOptions, passcodeLengthField);
INFO | ~ ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
INFO 1 error generated.
PR #40696: Size comparison from ad7752d to 7f764a7 Increases above 0.2%:
Full report (35 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
|
Add new passcodeLength field in CDC field
Update PasscodeService to return both a passcode and a display length
Addresses https://github.com/CHIP-Specifications/connectedhomeip-spec/issues/12129
Testing