-
Notifications
You must be signed in to change notification settings - Fork 3k
Cellular: new state machine state and better info from stm #10324
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
@jarvte, thank you for your changes. |
@@ -902,7 +902,9 @@ void AT_CellularContext::cellular_callback(nsapi_event_t ev, intptr_t ptr) | |||
if (ev >= NSAPI_EVENT_CELLULAR_STATUS_BASE && ev <= NSAPI_EVENT_CELLULAR_STATUS_END) { | |||
cell_callback_data_t *data = (cell_callback_data_t *)ptr; | |||
cellular_connection_status_t st = (cellular_connection_status_t)ev; | |||
_cb_data.error = data->error; | |||
if (ev != CellularStateRetryEvent) { // retry event may report errors but it's a retry so don't care about the error |
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.
May be removed?
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.
removed
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.
One commit having multiple logical things changed
int _status; | ||
PlatformMutex _mutex; | ||
cell_signal_quality _signal_quality; |
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.
cell_signal_quality
vs cellular_connection_status_t
- not having the same name scheme
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.
fixed
@@ -161,7 +165,7 @@ class CellularStateMachine { | |||
|
|||
Callback<void(nsapi_event_t, intptr_t)> _event_status_cb; | |||
|
|||
CellularNetwork *_network; | |||
CellularNetwork &_network; |
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.
how is this related to adding new connection status ? separate commit with explanation?
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.
removed, will do this fix in a different pr.
32a1015
to
bd423ca
Compare
Forced pushed review fixes. |
CI started |
Test run: SUCCESSSummary: 13 of 13 test jobs passed |
Please rebase, will restart CI |
Added new state (signal quality) and more information about progress so application/driver can build recovery logic.
bd423ca
to
bb7fa99
Compare
Fix automatic rebase error with cellulardevice.cpp
bb7fa99
to
8234f00
Compare
@0xc0170 rebase done. Also force-pushed fixes that were wrong after rebase. |
Ci restarted |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
Moved to 5.13.0-rc1. Patch does not want to be applied successfully to the mbedf-os-5.12 branch, even by itself. |
Description
Added new state (signal quality) and more information about progress so application/driver can build recovery logic.
Pull request type
Reviewers
@AriParkkila
Release Notes