-
Notifications
You must be signed in to change notification settings - Fork 8k
lib: adding support for modem to updatehub library #25558
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
Conversation
All checks are passing now. Tip: The bot edits this comment instead of posting a new one, so you can check the comment's history to see earlier messages. |
0abf325
to
f7c0a04
Compare
97b0784
to
1ba1853
Compare
Hi @mtahirbutt, thank you for sharing this. Now is far more clear. CC @otavio |
@nandojve the PR is ready for review, plz also add second reviewer. thanks. |
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.
Please check the code for style issues, there were lot of them. Also do not remove empty lines unnecessarily especially when they are not related to the actual functionality you are introducing.
lib/updatehub/updatehub.c
Outdated
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.
Could we place these newly introduced variable here and below to ctx
struct?
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.
moved
lib/updatehub/updatehub.c
Outdated
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.
Having empty line here is good, please remove this change.
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.
done
lib/updatehub/updatehub.c
Outdated
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.
Please introduce variables at the beginning of the block.
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.
done
lib/updatehub/updatehub.c
Outdated
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.
Wrong indentation
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.
corrected
lib/updatehub/updatehub.c
Outdated
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.
Please place empty line after ending } (apply to here and other places in your commit)
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.
added spaces as you mentioned
lib/updatehub/updatehub.c
Outdated
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.
Indentation wrong
lib/updatehub/updatehub.c
Outdated
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.
Having here empty lines is fine, why are you removing these
138e7c8
to
ce255e1
Compare
lib/updatehub/updatehub.c
Outdated
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.
with new code, the previous places generates long line length warnings.
Thanks for the fixes, you can squash the fix commit to the first one and resubmit branch. |
thanks for the message. done as suggested. |
Signed-off-by: Tahir Akram <[email protected]> This PR addresses the support for slower air interfaces (modem for example) to updatehub. Therefore, this implementation has been tested with DIGI XBC-M5-UT-001 XBee Cellular 3G modem with STM32L475 MCU BSP.
We would like thank you @mtahirbutt by this contribution. It helps us to improve UpdateHub fixing 3 bugs, avoid unnecessary flash write, improve CoAP lib, and add support to slow wireless interfaces like modem. |
This pull request addresses the support for slower air interfaces (modem for example) to updatehub. Originally updatehub was designed for high speed fixed LAN interfaces. Therefore, this implementation has been tested with DIGI XBC-M5-UT-001 XBee Cellular 3G modem with STM32L475 MCU BSP. It is expected that it should work with other interfaces as well. Some feedback is requested in this regard also.
Additionally there is also a bug fix for #24853.