-
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
cellular: registration status change fix #8795
Conversation
@jarvte Please review |
Please review and fix travis failures |
_reg_params._status = reg_params._status; | ||
data.status_data = reg_params._status; | ||
_connection_status_cb((nsapi_event_t)CellularRegistrationStatusChanged, (intptr_t)&data); |
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.
we should also send the original CellularRegistrationStatusChanged callback before disconnected
reg_params._status == SearchingNetwork || | ||
reg_params._status == RegistrationDenied || | ||
reg_params._status == Unknown) { | ||
if (!(_reg_params._status == StatusNotAvailable || |
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.
Hmm, if we drop to AttachedEmergencyOnly, RegisteredCSFBNotPreferredHome or to RegisteredCSFBNotPreferredRoaming are we still registered? if we drop to RegisteredSMSOnlyHome or RegisteredSMSOnlyRoaming we are registered but we probably can't send data. @AriParkkila @mirelachirica what do you think? I guess there is no right answer here.
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.
Maybe it is ok if any other state than RegisteredHomeNetwork or RegisteredRoaming indicates NSAPI_STATUS_DISCONNECTED, since data connection is impossible in those states.
Please review travis failure |
Info: This PR has been re-bundled into a new rollup PR (#8862). No further work is needed here, as once that PR is merged, this PR will also be closed and marked as merged. |
@@ -43,23 +43,34 @@ bool ATHandler_stub::bool_value = false; | |||
uint8_t ATHandler_stub::uint8_value = 0; | |||
FileHandle_stub *ATHandler_stub::fh_value = NULL; | |||
device_err_t ATHandler_stub::device_err_value; | |||
Callback<void()> ATHandler_stub::callback = NULL; |
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.
I believe this breaks unittests, see failure here https://mbed-os.mbedcloudtesting.com/blue/organizations/jenkins/mbed-os-ci_unittests/detail/mbed-os-ci_unittests/1295/pipeline (internal link)
CI started |
CI restarted (broken pipeline) |
Stopped and pushed to 5.11.1 for now. Prioritizing for 5.11.0-rc1 for CI. |
CI restarted. |
Test run: SUCCESSSummary: 4 of 4 test jobs passed |
Not related failure, see referenced PR above. We will restart once it is fixed |
client test restarted |
Description
Network connection status callback called with NSAPI_EVENT_CONNECTION_STATUS_CHANGE, NSAPI_STATUS_DISCONNECTED, if network registration status changes from a registered status to a unregistered status. Tested with unit tests.
Pull request type