Skip to content

Conversation

@Damian-Nordic
Copy link
Contributor

Raise an error when the remote sends an init packet with unknown destination group ID after the group has been bound, which indicates a reboot of the peer.

Raise an error when the remote sends an init packet with
unknown destination group ID after the group has been bound,
which indicates a reboot of the peer.

Signed-off-by: Damian Krolik <[email protected]>
@Damian-Nordic
Copy link
Contributor Author

Converting to draft, as after second thought I'm not sure if reporting a reboot as an error won't cause some issues on existing deployments. Maybe we should add another callback to nrf_rpc_init instead?

case NRF_RPC_TASK_GROUP_INIT: {
const struct nrf_rpc_group *group = task.group_init.group;

if (task.group_init.signal_reboot) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm... Why should device send error instead of notifying application about rebooted remote and reply to remote?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nrf_rpc_err does notify the application about the error, and only sends the error in certain cases. But I would say, you probably will like #1583 approach more than this one :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the another one is better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants