Ymodem ESP32 1.0.0
|
Ymodem Packet transmission functions. More...
#include "YmodemTransmit.h"
Go to the source code of this file.
Functions | |
int | waitForReceiverResponse () |
Waits for a response from the receiver. | |
int | sendInitialPacket (char *sendFileName, unsigned int sizeFile) |
Sends the initial packet for a file transfer using the Ymodem protocol. | |
int | sendFileBlocks (unsigned int sizeFile, fs::File &ffd) |
Sends file blocks over a communication channel. | |
int | sendEOT () |
Sends the End Of Transmission (EOT) signal. | |
int | sendLastPacket () |
Sends the last packet in the Ymodem transmission. | |
Ymodem Packet transmission functions.
This file contains the functions to transmit files using the Ymodem protocol. Format the packets and send them to the receiver or wait for the receiver response.
Definition in file YmodemTransmit.cpp.
int sendEOT | ( | ) |
Sends the End Of Transmission (EOT) signal.
This function is used to signal the end of a transmission process. It typically sends an EOT character to indicate that the transmission is complete.
Definition at line 100 of file YmodemTransmit.cpp.
int sendFileBlocks | ( | unsigned int | sizeFile, |
fs::File & | ffd ) |
Sends file blocks over a communication channel.
This function is responsible for transmitting the contents of a file in blocks.
sizeFile | The size of the file to be sent, in bytes. |
ffd | A reference to the file object to be transmitted. |
Definition at line 64 of file YmodemTransmit.cpp.
int sendInitialPacket | ( | char * | sendFileName, |
unsigned int | sizeFile ) |
Sends the initial packet for a file transfer using the Ymodem protocol.
This function prepares and sends the initial packet containing the file name and size to initiate the Ymodem file transfer process.
sendFileName | The name of the file to be sent. |
sizeFile | The size of the file to be sent, in bytes. |
Definition at line 34 of file YmodemTransmit.cpp.
int sendLastPacket | ( | ) |
Sends the last packet in the Ymodem transmission.
This function is responsible for transmitting the final packet in the Ymodem protocol. It ensures that the transmission is properly terminated.
Definition at line 122 of file YmodemTransmit.cpp.
int waitForReceiverResponse | ( | ) |
Waits for a response from the receiver.
This function blocks the execution until a response is received from the receiver. It is typically used in communication protocols where the transmitter needs to wait for an acknowledgment or other response from the receiver before proceeding.
Definition at line 16 of file YmodemTransmit.cpp.