-31-
v7.3
Software
•
11: if error writing SD error
•
12: if no more retries getting data
•
13: if file size mismatch
Example of downloading files:
www.libelium.com/development/waspmote/examples/4g-10-ftp-download
4.9.4.
FTP delete file
The
ftpDelete()
function deletes in the FTP server. The FTP session must be already open. The function expects
the name of the file to be deleted as input.
Example of deleting a file:
{
_4G.ftpDelete(“FILE_FTP.TXT”);
}
4.9.5. FTP working directory
The ftpGetWorkingDirectory() function requests the current working directory of the previously open FTP session.
The function updates the _ftpWorkingDirectory attribute which stores the information.
Example of getting the FTP working directory:
{
_4G.ftpGetWorkingDirectory();
}
Related variable:
_4G._ftpWorkingDirectory
→
Stores the current working directory
The
ftpChangeWorkingDirectory()
function allows the user to change the current working directory. The user
must keep in mind that the directory to access must be already created before attempting to call this function. The
function expects the name of the directory to access to as input parameter.
Example of changing the working directory:
{
_4G.ftpChangeWorkingDirectory(“NEWDIR”);
}
Related variable:
_4G._ftpWorkingDirectory
→
Stores the new working directory if correctly changed
4.9.6. Closing an FTP session
The
ftpCloseSession()
function allows the user to close an active FTP session.
Example of closing an FTP session:
{
_4G.ftpCloseSession();
}
Содержание LE910
Страница 1: ...Waspmote 4G Networking Guide ...