-->
Page 1 of 1

ESP8266 Client side writing / creation of files to an FTP

PostPosted: Thu May 12, 2016 7:11 pm
by Gene M
Hello Guys!

I find a lot of stuff here very useful, but I'm currently at a bit of a roadblock. I am working on my project and it is due in a few weeks. We have all our sensors working, and everything is generally set up, but our final piece of the missing puzzle is to have the ability to write files to an FTP through a Wifi connection using the ESP8266.

Currently as it stands, I have experimented with creating files and writing them to the SD card, but unfortunately, I hit a complete roadblock when it comes to writing the files remotely to the FTP server which I set up remotely. Using AT commands, I am able to communicate with the server, and to ping the device from the server back. I set up the FTP on the side of the server, so it is ready to go.

My question to all of the community is, can any of you help me produce a simple code, that just writes a basic "hello" in a text file, to the ftp server, in the simplest terms possible? With that code, I will be able to figure out how to transmit data from 7 sensors, and then access the data from the server, from a phone application we developed for an Android.

If anyone can help me just make a basic code for writing a simple "hello" to a text file on an FTP server through an established WiFi connection, or give me any kind of reference, because I've been banging my head against the wall the last few weeks. I would really appreciate any help.

Thank you guys!

Re: ESP8266 Client side writing / creation of files to an FT

PostPosted: Mon May 16, 2016 11:47 pm
by jeffrey92
Here is a FTP server example:
https://github.com/nailbuster/esp8266FTPServer

Now you just have to write a client :D

Probably gonna need this too:
https://tools.ietf.org/html/rfc959