C
void TFTPOpenFile( BYTE * fileName, TFTP_FILE_MODE mode );
Description
Prepares and sends TFTP file name and mode packet.
Preconditions
TFPTIsFileOpenReady() = TRUE
Parameters
Parameters |
Description |
fileName |
File name that is to be opened. |
mode |
Mode of file access Must be TFTP_FILE_MODE_READ for read TFTP_FILE_MODE_WRITE for write |
Returns
None
Side Effects
None
Remarks
By default, this funciton uses "octet" or binary mode of file transfer. Use TFTPIsFileOpened() to check if file is ready to be read or written.