-
Notifications
You must be signed in to change notification settings - Fork 3k
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
At handler improvements #11306
At handler improvements #11306
Conversation
How do these 2 commits differ if both have the same commit msg ? Shouldn't it then be one or commit messages changed? |
0e290d3
to
eec276e
Compare
Some git magic :) |
@AnttiKauppila, thank you for your changes. |
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.
Can we at least expand the commit message?
26 files changed and do not find there what improvements - I've noticed we use new commands like cmd_start_stop instead of previously start/write/stop. Brief description would be nice to have.
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.
Couldnt spot any issue. Checked WISE_1570 TCP socket tests - passing.
_at.write_int(read_len); | ||
_at.cmd_stop(); | ||
|
||
_at.cmd_start_stop("+QIRD", "=", "%d%d%d%d", 0, 1, socket->id, read_len); |
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.
Would it be good to maintain the explanatory comments for 0 and 1 usage?
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.
Better would be to use defines instead of magical numbers
Updated, is it better now? |
Also commit message (I dont see the update here) ? |
Propose a better one. What do you want to see in it? |
This should be sufficient in the commit msg (explains what is being improved and why). |
New ATHandler functions taken into use for rest of the targets (BG96 was updated initially) to reduce code size. This means basically that new functions using variadic list approach are taken into use and with those one can usually write AT commands in single line instead of multiple lines. Only internal changes and API's are not modified.
eec276e
to
d08d55d
Compare
_at->cmd_start("AT+CFUN=0"); | ||
_at->cmd_stop_read_resp(); | ||
_at->at_cmd_discard("+CFUN", "=0"); | ||
|
||
if (_at->get_last_error() == NSAPI_ERROR_OK) { |
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.
"_at->get_last_error()" looks outside lock/unlock as "_at->at_cmd_discard" is unlocking inside it.
Timer t1; | ||
t1.start(); | ||
while (!(t1.read() >= 180)) { | ||
_at.cmd_start("AT+UPSND=" PROFILE ",8"); | ||
_at.cmd_stop(); | ||
_at.cmd_start_stop("+UPSND", "=", "%d%d", PROFILE, 8); |
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.
Calling without at lock().
One small styling change needed (see astyle job failure). |
@AnttiKauppila Is this targeting 5.14? Not yet labeled ! |
71d5753
to
5076792
Compare
5076792
to
9151606
Compare
Test run: FAILEDSummary: 1 of 4 test jobs failed Failed test jobs:
|
Known issue with CI, restarting the build |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
@0xc0170 Is this now ready to go in. |
Description
New ATHandler functions taken into use for rest of the targets (BG96 was updated initially) to reduce code size. This means basically that new functions using variadic list approach are taken into use and with those one can usually write AT commands in single line instead of multiple lines.
Only internal changes and API's are not modified.
Pull request type
Reviewers
@ARMmbed/mbed-os-wan
Release Notes