Skip to content
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

Add CommandResponseStatus, CommandResponseProtocolError, and CommandResponseError Callback in IM delegate #5477

Conversation

yunhanw-google
Copy link
Contributor

@yunhanw-google yunhanw-google commented Mar 19, 2021

Problems:
Consumer SDK need to get to know the status code when invoke command
response has status code inside, and also need to know error when sender
fails to process command element and response timeout

Summary of Changes:
-- After receive status code from invoke command reponse, command sender
notify this status code via CommandStatus callback to Consumer SDK.
-- When response timeout happens, notify the timeout error
to consumer sdk.
-- When command element fails to process, notify the protocol error to
consumer sdk.

@boring-cyborg boring-cyborg bot added the app label Mar 19, 2021
@yunhanw-google yunhanw-google force-pushed the feature/add_command_request_status_callback branch from 8e07b52 to f2fecad Compare March 19, 2021 06:23
@yunhanw-google yunhanw-google force-pushed the feature/add_command_request_status_callback branch from f2fecad to 9a8270d Compare March 19, 2021 17:42
@yunhanw-google yunhanw-google changed the title Add CommandStatus Callback in IM delegate Add CommandResponseStatus and CommandResponseError Callback in IM delegate Mar 19, 2021
@yunhanw-google yunhanw-google force-pushed the feature/add_command_request_status_callback branch from 9a8270d to d3d1d72 Compare March 19, 2021 18:01
src/app/InteractionModelDelegate.h Outdated Show resolved Hide resolved
src/app/InteractionModelDelegate.h Show resolved Hide resolved
src/app/InteractionModelDelegate.h Outdated Show resolved Hide resolved
src/app/InteractionModelDelegate.h Show resolved Hide resolved
@yunhanw-google yunhanw-google force-pushed the feature/add_command_request_status_callback branch from 59a3830 to 9a93230 Compare March 22, 2021 20:45
@yunhanw-google yunhanw-google changed the title Add CommandResponseStatus and CommandResponseError Callback in IM delegate Add CommandResponseStatus, CommandResponseProtocolError, and CommandResponseError Callback in IM delegate Mar 22, 2021
@yunhanw-google yunhanw-google force-pushed the feature/add_command_request_status_callback branch from 9a93230 to 92643c0 Compare March 22, 2021 22:11
src/app/Command.cpp Show resolved Hide resolved
src/app/Command.h Show resolved Hide resolved
src/app/InteractionModelDelegate.h Show resolved Hide resolved
@yunhanw-google yunhanw-google force-pushed the feature/add_command_request_status_callback branch from 92643c0 to 9954780 Compare March 25, 2021 17:50
src/app/InteractionModelDelegate.h Outdated Show resolved Hide resolved
src/app/InteractionModelDelegate.h Outdated Show resolved Hide resolved
src/app/InteractionModelDelegate.h Outdated Show resolved Hide resolved
src/app/InteractionModelDelegate.h Outdated Show resolved Hide resolved
src/app/CommandSender.h Outdated Show resolved Hide resolved
@yunhanw-google yunhanw-google force-pushed the feature/add_command_request_status_callback branch from 9954780 to 595adc7 Compare March 29, 2021 20:02
@yunhanw-google yunhanw-google force-pushed the feature/add_command_request_status_callback branch 2 times, most recently from 1141d2d to f52b743 Compare March 29, 2021 21:35
src/app/Command.h Outdated Show resolved Hide resolved
@yunhanw-google yunhanw-google force-pushed the feature/add_command_request_status_callback branch from 507c82e to b48bb68 Compare March 30, 2021 14:01
…esponseError Callback in IM delegate

Problems:
Consumer SDK need to get to know the status code when invoke command
response has status code inside, and also need to know error when sender
fails to process command element and response timeout

Summary of Changes:
-- After receive status code from invoke command reponse, command sender
notify this status code via CommandStatus callback to Consumer SDK.
-- When response timeout happens, notify the timeout error
to consumer sdk.
-- When command element fails to process, notify the protocol error to
consuder sdk
@yunhanw-google yunhanw-google force-pushed the feature/add_command_request_status_callback branch from b48bb68 to 9c48461 Compare March 30, 2021 20:34
@bzbarsky-apple bzbarsky-apple merged commit d925b47 into project-chip:master Mar 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants