Change to my own struct for the virtual files init the index.txt from the tftp_server_init add tftp_server_deinit + add to docs
640 B
640 B
TFTP
This is the documentation of the TFTP task
Initialization
The TFTP task is initialized in the main function.
// Initialize TFTP task
tftp_init();
Deinitialization
If you would ever want to deinitialize the TFTP task, you can do so by calling the following function.
// Deinitialize TFTP task
tftp_server_deinit();
Usage
The TFTP task is used to receive and send files via TFTP.
Receive a file
index.txt contains a list of files on the file system.
tftp -g -r <filename> <ip>
Send a file
You can only write to the following files:
- virtImage.raw
tftp -p -l <filename> <ip>