66 int receive(fs::File& ffd,
unsigned int maxsize,
char* getname);
86 int transmit(
char* sendFileName,
unsigned int sizeFile, fs::File& ffd);
106 void finalizeSession();
Ymodem Packet reception functions.
Ymodem Packet transmission functions.
int getLedPin()
Retrieves the pin number associated with the LED.
Ymodem()
Constructor for the Ymodem class.
int receive(fs::File &ffd, unsigned int maxsize, char *getname)
Receives data and writes it to the provided file.
void setLedPin(int pin)
Sets the pin number for the LED.
~Ymodem()
Destructor for the Ymodem class.
int transmit(char *sendFileName, unsigned int sizeFile, fs::File &ffd)
Transmits a file using the Ymodem protocol.