hbjorgo / ATLib

ATLib is a C# library that makes it easy to communicate with modems.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiline Responses

KiranChinnam opened this issue · comments

Does this library support parsing multi-line responses? I'm trying to retrieve GNSS info from a U-Blox SARA R5.

TX-->AT+UGGSA?

RX-->+UGGSA: 1,$GNGSA,A,1,18,29,28,,,,,,,,,,11.16,7.03,8.672C
RX-->$GNGSA,A,1,86,,,,,,,,,,,,11.16,7.03,8.67
2A
RX-->
RX-->OK

The response puts each GSA string on a new line, so using await modem.RawCommandWithResponseAsync("AT+UGGSA?","");, I'm only able to see the first line of the response.

Found await atChannel.SendMultilineCommand("AT+UGGSA?", ""); does what I need.