Skip to content

Cellular: Fixed con-disc sequence can now be called multiple times. #6928

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

Merged
merged 3 commits into from
May 29, 2018

Conversation

jarvte
Copy link
Contributor

@jarvte jarvte commented May 16, 2018

Description

Fixed connect-disconnect sequence so that it can now be called multiple times from EasyCellularConnection.
Minor improvements to cellular state machine to make connect faster.

Internal ref to defect: IOTCELL-995

@AriParkkila @mirelachirica please review

Pull request type

[X] Fix
[ ] Refactor
[ ] New target
[ ] Feature
[ ] Breaking change

}
}

void EasyCellularConnection::set_plmn(const char* plmn)
{
_cellularConnectionFSM.set_plmn(plmn);
if (_cellularConnectionFSM) {

Choose a reason for hiding this comment

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

should we take plmn in temporary store or init FSM similar to set_sim_pin

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, will add init

_credentials_err = init();

if (_credentials_err) {
return;

Choose a reason for hiding this comment

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

should we just assert here..?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

_credentials_err is used later when trying to connect to return proper error. Because of the inherited void function we must store error for later use.

AriParkkila
AriParkkila previously approved these changes May 17, 2018
@jarvte
Copy link
Contributor Author

jarvte commented May 21, 2018

Please proceed with this one.

0xc0170
0xc0170 previously approved these changes May 22, 2018
@0xc0170
Copy link
Contributor

0xc0170 commented May 22, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented May 22, 2018

Build : FAILURE

Build number : 2100
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/6928/

@jarvte
Copy link
Contributor Author

jarvte commented May 22, 2018

@0xc0170 morph pc out of space?

@0xc0170
Copy link
Contributor

0xc0170 commented May 22, 2018

@0xc0170 morph pc out of space?

Looks like that. I already noticed this a moment ago and reported. We will restart it

@cmonr
Copy link
Contributor

cmonr commented May 23, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented May 23, 2018

Build : FAILURE

Build number : 2121
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/6928/

}
}
if (!success) {
tr_warning("Failed to set any URC's for registration");
Copy link
Contributor

Choose a reason for hiding this comment

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

Please review the build logs. Looks like this is not defined (missing include ?) .

@jarvte jarvte dismissed stale reviews from 0xc0170 and AriParkkila via 03f50e6 May 23, 2018 19:02
Copy link
Contributor

@cmonr cmonr left a comment

Choose a reason for hiding this comment

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

Fix LGTM

@cmonr
Copy link
Contributor

cmonr commented May 23, 2018

Holding off on restarting CI since we're manually prioritizing builds for PRs going into master in prep for 5.9 code freeze.

Since this is a fix, it can come in during 5.8.6.

@0xc0170
Copy link
Contributor

0xc0170 commented May 26, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented May 26, 2018

Build : SUCCESS

Build number : 2162
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/6928/

Triggering tests

/morph test
/morph uvisor-test
/morph export-build
/morph mbed2-build

@mbed-ci
Copy link

mbed-ci commented May 26, 2018

@mbed-ci
Copy link

mbed-ci commented May 26, 2018

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.

5 participants