Multiline Responses
KiranChinnam opened this issue · comments
Kiran Chinnam commented
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.672A
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.
Kiran Chinnam commented
Found await atChannel.SendMultilineCommand("AT+UGGSA?", "");
does what I need.