connectedhomeip
connectedhomeip copied to clipboard
close-session miss the device disconnect
https://github.com/project-chip/connectedhomeip/blob/2ac3ee761232b466db70c196986e90081f2c4ec3/examples/chip-tool/commands/pairing/CloseSessionCommand.cpp#L38
when send close session to the peer node via chip-tool, a disconnect process maybe add after send StatusReport message to remove the local secure session.
The point of this command is just to send a CloseSession to the remote. It's not meant to be used as a general-purpose session-closing mechanism.
That said, technically per spec sending a CloseSession should in fact tear down the local side of the session it's sent on. We should probably move the sending down out of chip-tool proper into the SDK, and have it do the send and close the local session. @mrjerryjohns
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.