FactbirdHQ / atat

no_std crate for parsing AT commands
Apache License 2.0
109 stars 29 forks source link

feature(*): Add option for custom parse fn in AtatUrc #205

Closed MathiasKoch closed 4 months ago

MathiasKoch commented 5 months ago

Add an optional parse fn to the at_urc field attribute of AtatUrc, that allows specifying a custom nom function to be used during digest. This allows doing stricter checks for cases where responses are hard to distinguish from URCs.

Fixes https://github.com/BlackbirdHQ/atat/issues/179 (See example of a stricter custom CxREG parser fn in tests (fn custom_cxreg_parse))