Download txt from ESP8266 webserver?
Posted: Tue Sep 08, 2015 2:38 pm
I'm not sure if you would call this FTP (by definition, I guess why wouldn't you?), but I'm looking to see if you can create a txt file and host a webpage to download the file from the ESP8266 to my computer. The idea I had in mind is if I'm storing data and saving it to memory, I would like to be able to connect to my 8266 and press a download button which would have all the data in a .txt format.
With html5 I know it's possible using the code below, but obviously there isn't a file structure in the code like there is on a computer. So how would I do this?
I'm aware of a few datalogging sites, which works, but I would like to be able to setup the 8266 as an AP and not have to worry about if there will be wifi for me to connect to and programming in the credentials as the wireless router changes.
With html5 I know it's possible using the code below, but obviously there isn't a file structure in the code like there is on a computer. So how would I do this?
Code: Select all
<a href="path/to/the/download/file" download><input type="button" value="Download"></a>
I'm aware of a few datalogging sites, which works, but I would like to be able to setup the 8266 as an AP and not have to worry about if there will be wifi for me to connect to and programming in the credentials as the wireless router changes.