-
Notifications
You must be signed in to change notification settings - Fork 3k
Cellular: Removed boilerplate code #10703
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
92a285a
to
9ddf3ad
Compare
Any chance of HE910 driver getting updated for this refactor? @maclobdell |
9ddf3ad
to
e2b7cd9
Compare
@loverdeg-ep All other targets will be updated accordingly but not in this PR. |
Internal JIRA reference: IOTCELL-2030 |
e2b7cd9
to
d3d8997
Compare
@AnttiKauppila, thank you for your changes. |
d3d8997
to
83d62fb
Compare
Thanks @mirelachirica. Fixed now |
* @param resp_buf_size Response buffer size | ||
* @param format Format string for variadic arguments to be added to AT command; No separator needed. | ||
* Use %d for integer, %s for string and %b for byte string (requires 2 arguments: string and length) | ||
* @return @return last error that happened when parsing AT responses |
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.
extra @return, same with some other new doxygens.
* @brief at_cmd_discard Send an AT command and read and discard a response. Locks and unlocks ATHandler for operation | ||
* @param cmd AT command in form +<CMD> (will be used also in response reading, no extra chars allowed) | ||
* @param cmd_chr Char to be added to specific AT command: '?', '=' or ''. Will be used as such so '=1' is valid as well. | ||
* @param resp Integer to hold response |
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.
there is no resp argument
NWRegisteringMode mode; | ||
get_network_registering_mode(mode); | ||
|
||
if (mode != NWModeAutomatic) { |
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.
if mode == NWModeAutomatic then this function does not return anything
@@ -361,8 +325,7 @@ nsapi_error_t AT_CellularNetwork::scan_plmn(operList_t &operators, int &opsCount | |||
|
|||
_at.lock(); | |||
|
|||
_at.cmd_start("AT+COPS=?"); | |||
_at.cmd_stop(); | |||
_at.cmd_start_stop("+COPS", "?"); |
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.
missing '=' ?
This is a nit, but the title of this PR has been bothering me. I'm thinking more along the lines of the following |
@jarvte good catches, fixed now. |
1d65ade
to
07ea91e
Compare
CI restarted |
Test run: FAILEDSummary: 1 of 1 test jobs failed Failed test jobs:
|
07ea91e
to
1ed338e
Compare
CI restarted |
Test run: FAILEDSummary: 1 of 7 test jobs failed Failed test jobs:
|
There's fix proposed in #10833, will restart CI after |
as soon as the fix lands , will do |
Sorry it is not yet merged :( |
CI started |
Test run: FAILEDSummary: 1 of 11 test jobs failed Failed test jobs:
|
Seem to be many random CI failures over the weekend, restarting CI |
Test run: FAILEDSummary: 2 of 11 test jobs failed Failed test jobs:
|
CI started |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
Description
Some boiler plate code removed to reduce memory footprint. This is done by adding new functions to ATHandler so no API breaks are introduced. Only BG96 target is updated to take new functions into use. Other targets are using existing methods.
For BG96 this reduces flash size about 1,3kB
Pull request type
Reviewers
@AriParkkila @kivaisan @jarvte @mirelachirica
Release Notes