The +CIPRXGET is basically a header followed by the binary data followed by OK.
It returns ParseError::Incomplete until the entire sequence of bytes is received. Currently the digest method does not honor this. It simply continues to the next "possible DigestResult candidate" in digest() because the result from the custom success handler is not Ok. Effectively this often finds a prompt "> " in the binary data.
The current
digest()
method forAtDigester
looks like this:https://github.com/BlackbirdHQ/atat/blob/a4608e9020ea8f1cd40e2677ee39d67bae2df699/atat/src/digest.rs#L110-L160
I have a
custom_succes
that handles reading binary data from the modem. For example:The
+CIPRXGET
is basically a header followed by the binary data followed by OK.It returns
ParseError::Incomplete
until the entire sequence of bytes is received. Currently the digest method does not honor this. It simply continues to the next "possible DigestResult candidate" indigest()
because the result from the custom success handler is not Ok. Effectively this often finds a prompt "> " in the binary data.