FTPServer

Lo script di runtime FTPServerLogic consente di abilitare un server FTP all’interno di una Q Application. Si trova all’interno della libreria dei template, nella sezione Scripts.

Note

al momento non sono supportate connessioni FTPS.

Setup

The following NuGet packages are required:

To install the NuGet packages please refer to this link: Add NuGet packages.

It is recommended to use stable versions of the packages.

Configuration parameters

The FTP server requires the following parameters to be configured:

  • IPAddress: IP address assigned to the server. The default value is set to 127.0.0.1

  • Port: port assigned to the FTP server. The default value is 21.

  • FilesystemRoot: FTP server exposes only a fraction of the local filesystem to clients. On ASEM ARM devices, only %PROJECTDIR%, %APPLICATIONDIR% or %USB<n>% (where <n> is the progressive number of a USB device) can be set.

  • MinimumPASVPort: minimum port number for managing file listing and file transfer. This value must be greater than 1024. The default value is 1024

  • MaximumPASVPort: maximum port number for managing file listing or file transfer. It must be greater than MinimumPASVPort. The default value is 1100

  • AuthorizedUsers: string array containing (project) users that can authorize access to the filesystem exposed by the server. An incoming connection from a client must specify a username from this list and its relative password (if configured)

Il server va avviato/spento tramite invocazione dei metodi OPC UA esportati StartFtpServer/StopFtpServer.