FactbirdHQ / atat

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

feature(*): add automatic retries to AtatClient::send implementation #124

Closed MathiasKoch closed 2 years ago

MathiasKoch commented 2 years ago

Introduces a new auto-implemented send_retry() function to AtatClient, and a new associated const ATTEMPTS: u8 to AtatCmd.

When send_retry() is used instead of send(), it will automatically retry a command ATTEMPTS times, if the result is Err(Error::Timeout) | Err(Error::Parse)

Fixes #123