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
FTPClient Class Reference
#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:
-
FTPServer directory 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:
-
@returns 1 on success, 0 on dir error
Definition at line 196 of file FTPClient.cpp.
bool fdelete | ( | char * | filename ) |
Delete FTPServer file.
- Parameters:
-
FTPServer file 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:
-
@returns 1 on success, 0 on ls error
Definition at line 250 of file FTPClient.cpp.
bool mkdir | ( | char * | dirname ) |
Make FTPServer directory.
- Parameters:
-
FTPServer directory 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:
-
FTPServer IP, 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:
-
FTPServer file name
- Returns:
- 1 on success, 0 on putfile error
Definition at line 130 of file FTPClient.cpp.
bool quit | ( | ) |
Disconnect from FTPServer.
- Parameters:
-
@returns 1 on success, 0 on Disconnect error
Definition at line 363 of file FTPClient.cpp.
Generated on Thu Jul 14 2022 12:00:17 by 1.7.2