16 #ifndef __NEXUPLOAD_H__
17 #define __NEXUPLOAD_H__
43 NexUpload(
const char *file_name,
const uint8_t SD_chip_select,uint32_t download_baudrate);
52 NexUpload(
const String file_Name,
const uint8_t SD_chip_select,uint32_t download_baudrate);
75 uint16_t _getBaudrate(
void);
82 bool _checkFile(
void);
91 bool _searchBaudrate(uint32_t baudrate);
100 bool _setDownloadBaudrate(uint32_t baudrate);
107 bool _downloadTftFile(
void);
116 void sendCommand(
const char* cmd);
128 uint16_t recvRetString(String &
string, uint32_t timeout = 100,
bool recv_flag =
false);
132 const char *_file_name;
134 uint32_t _undownloadByte;
135 uint8_t _SD_chip_select;
136 uint32_t _download_baudrate;
NexUpload(const char *file_name, const uint8_t SD_chip_select, uint32_t download_baudrate)
Constructor.
Provides the API for nextion to download the ftf file.
The definition of base API for using Nextion.