Ymodem ESP32 1.0.0
Loading...
Searching...
No Matches
YmodemCore.h
Go to the documentation of this file.
1
15#ifndef YMODEMCORE_H
16#define YMODEMCORE_H
17
18#include "YmodemReceive.h"
19#include "YmodemTransmit.h"
20
29class Ymodem
30{
31public:
37 Ymodem();
38
47
66 int receive(fs::File& ffd, unsigned int maxsize, char* getname);
67
86 int transmit(char* sendFileName, unsigned int sizeFile, fs::File& ffd);
87
95 void setLedPin(int pin);
96
102 int getLedPin();
103
104private:
105 int ledPin = YMODEM_LED_ACT;
106 void finalizeSession();
107};
108
109#endif // YMODEMCORE_H
#define YMODEM_LED_ACT
Definition YmodemDef.h:23
Ymodem Packet reception functions.
Ymodem Packet transmission functions.
Ymodem class.
Definition YmodemCore.h:30
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.
Definition YmodemCore.h:46
int transmit(char *sendFileName, unsigned int sizeFile, fs::File &ffd)
Transmits a file using the Ymodem protocol.