Skip to content

Conversation

NordicBuilder
Copy link
Contributor

Backport c2097f6 from #2176.

`+C*REG:` may be received as AT read command answer
or unsolicited notification.
Their syntax differs, and even the overall parameter count varies
depending on what `<n>` is used in the `AT+CEREG=` write command.

To handle all cases properly, check the parameter count and
the presence of the `<tac>` parameter (which is a string and
thus begins with `"`) to figure out what is the position of `<stat>`.

Signed-off-by: Tomi Fontanilles <[email protected]>
(cherry picked from commit 46366b9a4330b18d1eb0210d001532c75a215885)

Upstream PR #: 80512

Signed-off-by: Tomi Fontanilles <[email protected]>
(cherry picked from commit c2097f6)
@rlubos rlubos merged commit ece4640 into v3.7.99-ncs1-branch Oct 28, 2024
19 checks passed
@rlubos rlubos deleted the backport-2176-to-v3.7.99-ncs1-branch branch October 30, 2024 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants