-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[Darwin] API to list all network commissioning features supported by an MTRDevice #36479
[Darwin] API to list all network commissioning features supported by an MTRDevice #36479
Conversation
anush-apple
commented
Nov 13, 2024
- Expose the network commissioning feature bitset as API to know what transports are supported by the device.
…an MTRDevice - Expose the network commissioning feature bitset as API to know what transports are supported by the device.
bd1204d
to
44434eb
Compare
PR #36479: Size comparison from 59d7388 to 44434eb Full report (68 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
PR #36479: Size comparison from 59d7388 to a3e2131 Full report (68 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
PR #36479: Size comparison from 59d7388 to e96802b Full report (68 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
- (MTRNetworkCommissioningFeature)networkCommissioningFeatures | ||
{ | ||
std::lock_guard lock(_descriptionLock); | ||
return [_allNetworkFeatures unsignedIntValue]; |
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.
So this will return a value with no bits set when the actual state might be "we don't know yet". Is that expected?
That is, should we differentiate in the API between "we don't know yet" and "we know and it supports nothing"?
…an MTRDevice (project-chip#36479) * [Darwin] API to list all network commissioning features supported by an MTRDevice - Expose the network commissioning feature bitset as API to know what transports are supported by the device. * Code review comments * Code review comments * Restyled by clang-format --------- Co-authored-by: Restyled.io <[email protected]>