Commands and functions
P.
283 of 349
FTP-Funktionen
Ftpconfig
Sendftp
FTP transfer to any data logging.
The FTP transfer writes files to a remote FTP server, the maximum file size is 64 kB.
To this end, various handles can be created, which in turn create buffered queue by up to 64 kB
large file on the server. The files are via timeout earlier (and then fewer bytes if necessary) written or
initiated by flushftp () by the user.
The files are named automatically by the firmware by date and time.
Strings can be written as input. The file is in ASCII format and therefore the function sendftp() P. 283
is wirtten in the queue.
In this case an LF CR (newline suitable for Windows) is inserted at the end of the data transmission
of sendftp. A call to sendftp can pass more than one substring, but no more than 1400 bytes assume
total. It can not handle more than four are defined. On P. 110 you can find a detailed example. This
is not to be confused with the periodic outsourcing of the KNX
TM
telegramms (vgl. P. XX).
Definition
●
Function
ftpconfig
(
server
,
user
,
password
,
path
,
timeout
)
Arguments
●
Argument
server
of data type c1400
●
Argument
user
of data type c1400
●
Argument
password
of data type c1400
●
Argument
path
of data type c1400
●
Argument
timeout
of data type u32 in seconds
Effect
●
Configuration of an FTP server
●
Updating the dependencies for value change or during the possible invocation of the
startup function.
●
The FTP transfer writes files to a remote FTP server, the maximum file size is 64 kB. To
this end, various handles can be created, which in turn create buffered queue by up to 64
kB large file on the server. The files are via timeout earlier (and then fewer bytes if
necessary) written or initiated by flushftp () by the user. The files are automatically named
by the firmware by date and time.
●
More than four handles cannot be defined.
Data type result (return)
●
In case of failure = 0
●
On sucess a handle number 1 to 4 will return
Definition
●
Function
sendftp
(
handle
,
data1
,
[data2]
,
[...]
)
Arguments
●
Argument
handle
of data type u08
●
Argument
data[x]
of any data type, a maximum of 1400 bytes.
Effect
●
Any data written to the queue of the handle.
●
The assignment is done asynchronously.
Data type result (return)
●
if it is successful = 0
●
In the case of failure= 1
HandbuchEibPC_USA-30.odt, 2017-05-11
Enertex
®
Bayern GmbH - Erlachstraße 13 - 91301 Forchheim - [email protected]