-
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
Return only operational devices GetConnectedDevice #11993
Return only operational devices GetConnectedDevice #11993
Conversation
With the exception of commissioning, all cluster commands should be sent over operational connection. Falling back to the PASE connection is probably not what we actually want here. For commissioning, callers should either use the provided commissioning flow in the SDK or use the provided GetDeviceBeingCommissioned. This also makes it much more obvious in the code which connection is being used.
PR #11993: Size comparison from ef6455d to 37b4b08 Decreases (2 builds for linux)
Full report (38 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
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.
Approved assuming resolution of @Damian-Nordic's comment.
chip-device-ctrl BLE commissioning procedure is very manual which means folks are actually sending commands manually over the PASE connection to add and enable the network. This first checks the PASE connection and sends over CASE if we're not currently commissioning the device.
give users more contrtol over whether they want to send this command over a PASE established connectionconnectedhomeip/src/controller/python/chip/ChipDeviceCtrl.py Lines 344 to 350 in 6fbd391
This comment was generated by todo based on a
|
PR #11993: Size comparison from 53721c0 to 6fbd391 Decreases (2 builds for linux)
Full report (38 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
PR #11993: Size comparison from 8bfdc13 to f504542 Decreases (2 builds for linux)
Full report (38 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
PR #11993: Size comparison from 8a2fd0d to d406ec0 Decreases (2 builds for linux)
Full report (38 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
Problem
GetConnectedDevice should return the OperationalDeviceProxy.
With the exception of commissioning, all cluster commands should
be sent over operational connection. Falling back to the PASE
connection is probably not what we actually want here. For
commissioning, callers should either use the provided commissioning
flow in the SDK or use the provided GetDeviceBeingCommissioned.
This also makes it much more obvious in the code which connection
is being used.
Change overview
Changed return type on the OnDeviceConnectedFn callback, removed
fallback to PASE connected device in GetConnectedDevice.
Testing
Covered by cirque / darwin tests. Tested manually with chip-tool