Print wrapper that retries writing unwritten data.
RetryPrint is a Print adapter that attempts to ensure all data is written to the underlying Print target. If a write operation does not write all requested bytes (e.g., due to a transient failure or buffer full), it will retry up to a configurable number of times, rewriting any unwritten data. Retries are reset on progress.
Example usage:
WiFiClient client;
retryPrint.print("Hello, world!\n");
Print wrapper that retries writing unwritten data.
Definition: RetryPrint.h:22
- Note
- If used outside Arduino, ensure a suitable delay() implementation is available.