TFTPOpenFile Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
TFTPOpenFile Function
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.

Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.