Using FTP on 1500NB?

For a datalogger that works propely, and commanded by SMS, i need to upload files from SDcard (shield MKR proto) to a FTP server...
I've seen somme projects on MKR1400, but none on 1500...
https://forum.arduino.cc/t/mkr-gsm-1400-ftp/528443
However, <MKRGSM.h> <GSMFTP.h> <GSMFileSystem.h> create a lot of compilation errors, as expected!
Is anyone has already performed FTP uploads?

If any, perhaps i can use attached file on email sended by MKR, or by MMS...
Thanks for your help :wink:

Welcome. I recommend to send the data via MQTT and do the work on the server side. I do it with a node script

Maybe thats a way?

Thanks a lot for your answer!!
Fortunately I found the ability to save small files on FPT this week, and large files yesterday night!!! For this, I had to rewrite some functions of MODEM.cpp, GSMFileSystem.cpp, NBFileUtils.cpp in an new xxxxx.h and wrote AT commands to save on SARA flash module + FTP transfer. I had to redefined all timeout to adapt them to the capacity of SARA module.
All my comments and labels are scripted in French, and I'm little bit disapointed with the using of NB librairies, probably because there are no documented and commented in codes. So, for a sunday programmer as me, it's sensitively difficult. Moreover, I think that there is probably some mistakes in librairies native code of NB1500...

I do not know MQTT transfer (even i saw it quickly), and i know nothing about mysql script. Some of my friends knows that, so perhaps i could do that. I saw your JSON script on Github - Thanks.
I think your method is probably best because you can perhaps use LTE transfert with MQTT protocol, and you don't have to save in flash system SARA files.
This last operation take me a precious time (i have to optimize delay under 3ms for each data). After, I open a GPRS protocole (with significants and uncontroled native timeouts) with a long transfer instead of LTE transfer, as you could probably used...

I use this lib:

The best is to read/understand about the general architecture and then you will see how easy it is with MQTT on a small MCU like the MKR 1500. File operations / FTP etc is for fully grown computers and make not much sense on a IoT device IMHO.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.