Closed bzbarsky-apple closed 2 years ago
What is this issue trying to address? Are you looking for more documentation? A re-write? Or are you saying there is a bug?
The context is that the existing code is clearly not correct, because it uses IsFullyProvisioned
, which does not correspond to useful provisioning state in practice.
What neither I nor @msandstedt could figure out is exactly what this code is trying to do, which makes it hard to make it do it.
So:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
We no longer use IsFullyProvisioned
here, and the API surface has been changed some and better documented.
I spent some time staring at
Advertise(bool commissionableNode)
and I don't understand what this code is even trying to do.... I think theadditionalPairing
boolean can basically be set toHaveOperationalCredentials()
, but what does themodeEnabled
arg toCommissionAdvertisingParameters::SetCommissioningMode
even mean? Should it just be set tocommissionableNode
? Something else? None of this stuff is documented and the naming doesn't match up to spec concepts very well. :(@cecille @andy31415 @chrisdecenzo
_Originally posted by @bzbarsky-apple in https://github.com/project-chip/connectedhomeip/pull/8923#discussion_r687917074_