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

Cellular: ublox cellular api refactoring #11292

Closed
wants to merge 1 commit into from

Conversation

mudassar-ublox
Copy link
Contributor

Description

ublox cellular api refactoring. Updated methods with latest methods.

Pull request type

[ ] Fix
[x] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

Reviewers

Release Notes

@ciarmcom ciarmcom requested review from a team August 22, 2019 15:00
@ciarmcom
Copy link
Member

@mudassar-ublox, thank you for your changes.
@ARMmbed/mbed-os-wan @ARMmbed/mbed-os-maintainers please review.

Copy link

@AriParkkila AriParkkila left a comment

Choose a reason for hiding this comment

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

Needs unlock/unlock fixes. ATHandler calls should be within lock/unlock, including get_last_error and restore/set_at_timeout.

_at->cmd_start("AT+CFUN=4");
_at->cmd_stop_read_resp();
_at->at_cmd_discard("+CFUN", "=4");
#endif
if (_at->get_last_error() == NSAPI_ERROR_OK) {

Choose a reason for hiding this comment

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

Need to be within lock/unlock.

#endif

return _at->unlock_return_error();
return _at->get_last_error();

Choose a reason for hiding this comment

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

Need to be within lock/unlock.

break;
} else {
_at.clear_error();
wait_ms(1000);
}
}
t1.stop();
_at.unlock();
return _at.get_last_error();

Choose a reason for hiding this comment

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

Need to be within lock/unlock.

@AnttiKauppila
Copy link

@mudassar-ublox These changes are part of my PR: #11306. How do you want to proceed with this?

@0xc0170
Copy link
Contributor

0xc0170 commented Aug 26, 2019

@mudassar-ublox These changes are part of my PR: #11306. How do you want to proceed with this?

Shall this be closed?

@fahimalavi
Copy link
Contributor

It is fine to close it as changes are present in another pull request

@mudassar-ublox
Copy link
Contributor Author

Closing as same changes present in PR #11306.

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

Successfully merging this pull request may close these issues.

6 participants