-->
Page 2 of 5

Re: Share folder of my laptop with the ESP8266

PostPosted: Mon May 27, 2019 8:07 am
by Bonzo
I have downloaded data three different ways now:

UDP to a folder using Python on a Pi
HTTP to a php page on website
FTP directly into my website.

Also MQTT to the Adafruit website which is probably not what you want to do as it is a pain getting it back onto a PC. Although a electronics/software at work did it someway using a Microsoft program.

Re: Share folder of my laptop with the ESP8266

PostPosted: Mon May 27, 2019 9:54 am
by Dan Kiefer
Thanks Bonzo!

You mean something like this: https://thearduinoandme.wordpress.com/tutorials/esp8266-send-receive-binary-data/?

Looks promising.

Regards
Dan

Re: Share folder of my laptop with the ESP8266

PostPosted: Mon May 27, 2019 10:30 am
by Bonzo
Yes but I think mine was a lot shorter than that as all that as all I did was start the wifi, receive the request from the Python code and transmit the data back. I do not think I had a lot of error checking :oops:

I formatted my computer earlier this year and due to a cockup lost a lot of data and code so can not post what I did.

Re: Share folder of my laptop with the ESP8266

PostPosted: Mon May 27, 2019 7:46 pm
by davydnorris
Regarding my previous answer - what languages have you programmed in previously? Have you ever used JavaScript, Java or Python?

If you have, then it would be really easy to set up a very simple web server that would accept a POST command from the ESP and then save the data in a file. Check out this thread on a really basic Python server:
https://gist.github.com/bradmontgomery/2219997

Similar things can be done in node with JavaScript https://www.sitepoint.com/build-a-simple-web-server-with-node-js/

If you've used MQTT before then you can run your own broker on your laptop, but then you would need to also create a client app to get the data from the broker. BUT... if you already have all that from your playing with ThingSpeak then it may be really simple to just set up Mosquitto https://mosquitto.org/ on your laptop and point your existing code to the new broker.