Skip to main content

parse_at_response

Function parse_at_response 

Source
pub fn parse_at_response(
    raw: &[u8],
    command: &str,
    solicited_prefixes: &[String],
    result_format: AtResultFormat,
) -> ParsedAtResponse
Expand description

Classify lines into solicited body vs URC using echo / solicited prefixes.

The data line after +CMGR:/+CMGL:/+CMT:/+CBM:/+CDS: <len> belongs to its header (body or URC, kept adjacent). Lines after the final result are URCs.