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

TImeout on initial request fixed #70

Merged
merged 1 commit into from
Aug 9, 2022
Merged

TImeout on initial request fixed #70

merged 1 commit into from
Aug 9, 2022

Conversation

philips77
Copy link
Member

Just after connection the McuMgrBleTransport requests McuMgr parameters from the device. This request may succeed, may fail (rc=8), or may time out (1 sec). After the timeout the library would send another requests and, as it would be the first one done using the send method, it would get sequence number 0. However, sometimes the response for the McuMgr params is received after 1 sec and, as it had also sequence set to 1, the library matched it with a wrong request and operation would fail. This PR ensures that the initial request has a different sequence number.

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.

1 participant