-
Notifications
You must be signed in to change notification settings - Fork 3k
Cellular: Implementation of virtual get_ip_address funtion in ublox-api #12215
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
@mudassar-ublox, thank you for your changes. |
cc @pilotak |
@@ -404,36 +404,95 @@ void UBLOX_AT_CellularStack::clear_socket(CellularSocket *socket) | |||
} | |||
} | |||
|
|||
#ifndef UBX_MDM_SARA_R41XM |
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.
why this one is being skipped? Can you add this detail to the commit message (similar is stated in the description - this is implemented for 2 targets as I understood) ?
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.
Yes, these changes are for UBLOX_C030_U201
and UBLOX_C027
. UBLOX_C030_R41XM
is skipped as it does not support UPSND
command for getting IP address so instead of using these functions it will use parent class functions, get_ip_address.
b45deea
to
0bcdd41
Compare
@0xc0170 commit updated, Please review now. |
CI started |
You will soon have "deadcode" with get_ip_address(); #11942 |
@@ -404,36 +404,95 @@ void UBLOX_AT_CellularStack::clear_socket(CellularSocket *socket) | |||
} | |||
} | |||
|
|||
#ifndef UBX_MDM_SARA_R41XM | |||
const char *UBLOX_AT_CellularStack::get_ip_address() |
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 possible to call get_ip_address(SocketAddress *) function here instead of duplicating the code?
Would be much easier to remove later on.
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.
Something like
`SocketAddress addr;
get_ip_address(&addr);
return _ip; //Set already in above function`
As @AnttiKauppila suggested, this should come in before #11942. We will update then 11942 to get it up to date. @mudassar-ublox would you implement the suggestion above from the review here? We can retrigger CI once done. |
Test run: FAILEDSummary: 1 of 11 test jobs failed Failed test jobs:
|
Was restarted, all good now |
@mudassar-ublox Let us know if you want to update based on the suggestion. Otherwise this is ready to get in |
0bcdd41
to
1676454
Compare
…X_C030_U201 and UBLOX_C027
1676454
to
075a6fd
Compare
@0xc0170 PR updated according to @AriParkkila suggestions. |
CI started |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
Summary of changes
Override virtual get_ip_address funtion in ublox-api for
UBLOX
targetsUBLOX_C030_U201
andUBLOX_C027
.FIx #12102
Impact of changes
Migration actions required
Documentation
Pull request type
Test results
Reviewers