Putftp error

Good evening,
I have a problem with putftp.
I want to write on a ftp a file xx.csv which is in the directory usr of the Flexy and it sends me error actionid 31/32
ecrireftp:
Print “I’m in the ftp send”
FileExport1$ = “$dtUF$ftT$uf” + fileNameFSD$
name$ = “/ test /” + fileNameFSD$
adres$ = “***. ******* ******* # @ hopto.org:21,1” //The password ends with a #
PUTFTP name$, FileExport1$, adres$
print “I’m coming out of the ftp”
print GETSYS PRG, “ACTIONID”

Return
End

I have a NO-IP dns that works.
Before writing to the FTP, I send the file by email and I write it on the SD card of the Flexy.

Thanks in advance

Kirty

Hi Kirty,

I found an example PUTFTP function that we may be able to base this off of

// Post a file with the Histo logging of Temperature tag
// on a defined FTP server.
a$ = “/ewon1/Temperature.txt”
b$ = “[dtHL$ftT$tnTemperature]”
c$ = “user:pwd@FTPserver.com
PUTFTP a$, b$, c$

I can try and jump on a teamviewer and see if we can help you debug this if you’d like

do you have a colon in between your user and password?

good evening Tim, that’s the response from the ftp server when the flexy sends the request

(000010)29-05-19 23:00:00 - (not logged in) (109.88.37.125)> USER wjm
(000010)29-05-19 23:00:00 - (not logged in) (109.88.37.125)> 331 Password required for wjm
(000010)29-05-19 23:00:00 - (not logged in) (109.88.37.125)> PASS *********
(000010)29-05-19 23:00:00 - wjm (109.88.37.125)> 230 Logged on
(000010)29-05-19 23:00:00 - wjm (109.88.37.125)> TYPE I
(000010)29-05-19 23:00:00 - wjm (109.88.37.125)> 200 Type set to I
(000010)29-05-19 23:00:00 - wjm (109.88.37.125)> PASV
(000010)29-05-19 23:00:00 - wjm (109.88.37.125)> 227 Entering Passive Mode (192,168,0,26,198,32)
(000010)29-05-19 23:00:00 - wjm (109.88.37.125)> STOR /essai/DATA_JURBISE29_05_2019.csv
(000010)29-05-19 23:00:00 - wjm (109.88.37.125)> 425 Rejected data connection for transfer of “/essai/DATA_JURBISE29_05_2019.csv”, IP addresses of control and data connection do not match
(000010)29-05-19 23:00:00 - wjm (109.88.37.125)> quit
(000010)29-05-19 23:00:00 - wjm (109.88.37.125)> 221 Goodbye
(000010)29-05-19 23:00:00 - wjm (109.88.37.125)> disconnected.

Re flexy event
30/05/2019 00:00:23

24017

ftpc-Erreur du serveur FTP (425 Rejected data connection for transfer of “/essai/DATA_JURBISE29_05_2019.csv”, IP addresses of control and data connection do…

unact
30/05/2019 00:00:23

24010

ftpc-Échec de commande FTP

Is this an SFTP server?

Hi Tim, after some tests it works.
And I forgot the “[]”
ftp is a simple ftp not a sftp

a big thank-you
kirty

1 Like