|
Ymodem ESP32 1.0.0
|
Example code to transmit a file using Ymodem protocol. More...
Include dependency graph for TransmitExample.cpp:Go to the source code of this file.
Macros | |
| #define | CONFIG_SPIFFS_SIZE (2 * 1024 * 1024) |
| #define | MAX_FILE_SIZE (CONFIG_SPIFFS_SIZE - 0x2000) |
Functions | |
| void | setup () |
| Initial system configuration. | |
| void | loop () |
| Main loop function that handles the transmission of a firmware file using Ymodem protocol. | |
Variables | |
| Ymodem | ymodem |
Example code to transmit a file using Ymodem protocol.
This code is an example of how to use the Ymodem library to transmit a file using the Ymodem protocol. The file is read from the SPIFFS filesystem and sent through the Serial1 port.
Definition in file TransmitExample.cpp.
| #define CONFIG_SPIFFS_SIZE (2 * 1024 * 1024) |
SPIFFS size in bytes
Definition at line 20 of file TransmitExample.cpp.
| #define MAX_FILE_SIZE (CONFIG_SPIFFS_SIZE - 0x2000) |
Maximum file size
Definition at line 21 of file TransmitExample.cpp.
| void loop | ( | ) |
Main loop function that handles the transmission of a firmware file using Ymodem protocol.
This function performs the following steps:
Definition at line 75 of file TransmitExample.cpp.
| void setup | ( | ) |
Initial system configuration.
This function performs the following tasks:
Definition at line 36 of file TransmitExample.cpp.
| Ymodem ymodem |
Ymodem instance
Definition at line 23 of file TransmitExample.cpp.