Update FTPClient

Dependents:   Digital_Photo_Frame_with_FTP_SD_WIZwiki-W7500 FTP_Streaming_Music_Player_WIZwiki-W7500 GIF2015 MP3Decoding_VS1002_WIZwiki-W7500

Fork of FTPClient by Midnight Cow

Embed: (wiki syntax)

« Back to documentation index

FTPClient Class Reference

FTPClient Class Reference

FTPClient class. More...

#include <FTPClient.h>

Public Member Functions

 FTPClient (PinName mosi, PinName miso, PinName sclk, PinName ssel, const char *root)
 Create FTPClient instance.
bool open (char *ip, int port, char *id, char *pass)
 Connect to FTPServer.
bool getfile (char *filename)
 Get file from FTPServer.
bool putfile (char *filename)
 Put file to FTPServer.
bool dir (char *liststr)
 View FTPServer directory.
bool ls (char *liststr)
 View FTPServer directory.
bool fdelete (char *filename)
 Delete FTPServer file.
bool mkdir (char *dirname)
 Make FTPServer directory.
bool cd (char *dirname)
 Change current FTPServer directory.
bool quit ()
 Disconnect from FTPServer.

Detailed Description

FTPClient class.

Used file transfer with FTPServer like ALFTP(http://software.altools.co.kr/ko-kr/closed.html) This test was completed in ALFTP

Definition at line 10 of file FTPClient.h.


Constructor & Destructor Documentation

FTPClient ( PinName  mosi,
PinName  miso,
PinName  sclk,
PinName  ssel,
const char *  root 
)

Create FTPClient instance.

Definition at line 7 of file FTPClient.cpp.


Member Function Documentation

bool cd ( char *  dirname )

Change current FTPServer directory.

Parameters:
FTPServerdirectory name
Returns:
1 on success, 0 on mkdir error

Definition at line 344 of file FTPClient.cpp.

bool dir ( char *  liststr )

View FTPServer directory.

Parameters:
@returns1 on success, 0 on dir error

Definition at line 196 of file FTPClient.cpp.

bool fdelete ( char *  filename )

Delete FTPServer file.

Parameters:
FTPServerfile name
Returns:
1 on success, 0 on delete error

Definition at line 307 of file FTPClient.cpp.

bool getfile ( char *  filename )

Get file from FTPServer.

Parameters:
filename
Returns:
1 on success, 0 on getfile error

Definition at line 62 of file FTPClient.cpp.

bool ls ( char *  liststr )

View FTPServer directory.

Parameters:
@returns1 on success, 0 on ls error

Definition at line 250 of file FTPClient.cpp.

bool mkdir ( char *  dirname )

Make FTPServer directory.

Parameters:
FTPServerdirectory name
Returns:
1 on success, 0 on mkdir error

Definition at line 325 of file FTPClient.cpp.

bool open ( char *  ip,
int  port,
char *  id,
char *  pass 
)

Connect to FTPServer.

Parameters:
FTPServerIP, FTPServer PORT, FTPServer login ID, FTPServer login PASS
Returns:
1 on success, 0 on open error

Definition at line 25 of file FTPClient.cpp.

bool putfile ( char *  filename )

Put file to FTPServer.

Parameters:
FTPServerfile name
Returns:
1 on success, 0 on putfile error

Definition at line 130 of file FTPClient.cpp.

bool quit (  )

Disconnect from FTPServer.

Parameters:
@returns1 on success, 0 on Disconnect error

Definition at line 363 of file FTPClient.cpp.