ftpClose (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Firmware version:

2.10 / 1.00.00


This function will close the FTP interface. After the FTP interface is closed, it cannot be used until opened again.

Please also see ftpOpen.

 

When closing the FTP interface, all sessions created with ftpConnect will automatically be closed.

 

Input:

None.

 

Returns: INT

0


- Success.

- 5


- FTP not open, use ftpOpen to open interface.

 

 

Declaration:

FUNCTION ftpClose : INT;

 

Example:

INCLUDE rtcu.inc
 
PROGRAM example;
VAR
   open      : BOOL;
END_VAR;
 
   gsmPower(power := ON);
   gprsOpen();
 
BEGIN
  open := (ftpOpen() = 0);
  ...
  ftpClose();
END;
END_PROGRAM;