Skip to content

feat: properly handle +CGCONTRDP when ipv6 is enabled#59

Merged
diondokter merged 1 commit intodiondokter:masterfrom
nponsard:fix/ipv6-parsing
Mar 24, 2026
Merged

feat: properly handle +CGCONTRDP when ipv6 is enabled#59
diondokter merged 1 commit intodiondokter:masterfrom
nponsard:fix/ipv6-parsing

Conversation

@nponsard
Copy link
Copy Markdown
Contributor

@nponsard nponsard commented Mar 20, 2026

I didn't read the spec correctly, turns out +CGCONTRDP returns two messages when it gets configured in dual stack mode. On the SIM I tested this happens when IPV6 or IPV4V6 PDN type is used.
I have to split the lines because at_commands::parser::CommandParser cannot handle that many fields.

This is breaking, it changes the struct returned on status change.

@nponsard nponsard force-pushed the fix/ipv6-parsing branch 2 times, most recently from 2531801 to 5e25e5b Compare March 20, 2026 11:30
@nponsard nponsard changed the title feat: properly handle +CGCONTRDP when ipv6 is enabled#57 feat: properly handle +CGCONTRDP when ipv6 is enabled Mar 20, 2026
Copy link
Copy Markdown
Owner

@diondokter diondokter left a comment

Choose a reason for hiding this comment

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

Cool, thanks for coming back to fix it!

@nponsard
Copy link
Copy Markdown
Contributor Author

I'm testing a bit more before marking it as ready.

@nponsard nponsard force-pushed the fix/ipv6-parsing branch 2 times, most recently from 879f2a0 to 96cfab4 Compare March 20, 2026 15:07
@nponsard nponsard marked this pull request as ready for review March 20, 2026 15:20
Signed-off-by: Nils Ponsard <nils.ponsard@inria.fr>
@nponsard
Copy link
Copy Markdown
Contributor Author

Should be good now, tested on an nrf9160dk with the embassy-net-tcp-client example:

cargo run
cargo run --no-default-features --features ipv6

@nponsard nponsard requested a review from diondokter March 20, 2026 15:29
@diondokter
Copy link
Copy Markdown
Owner

Thanks!

@diondokter diondokter merged commit 4231581 into diondokter:master Mar 24, 2026
1 check passed
@nponsard nponsard deleted the fix/ipv6-parsing branch March 24, 2026 13:46
@nponsard
Copy link
Copy Markdown
Contributor Author

Thanks for the release !

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants