Page 1 of 1

Web Client ESP32 micropython

Posted: Tue Dec 05, 2017 10:43 pm
by javargas26
Hi... the thing is this:

I am collecting some data from a sensor and showing it in the console, but I want to send it to a server that is not on my LAN. I am also able to conect to wifi using my phone as an AP, but it is just that, just conected to the wifi.

What I want to do and I don't have any idea how is to be able to send the data I get from the sensor to a data base over the internet conection.

All I know is that I have to make a web client.

Any help or sugestions would be very nice

Re: Web Client ESP32 micropython

Posted: Wed Dec 06, 2017 7:42 am
by Roberthh

Re: Web Client ESP32 micropython

Posted: Wed Dec 06, 2017 1:02 pm
by SpotlightKid
The solution also also depends on the kind of server you want your data to send to.

* If it's a plain HTTP web server or a REST API, I suggest you use urequests.
* If it's a MQTT broker, use umqtt.
* If it's a Redis database, use micropython-redis or picoredis
* If it's an FTP server, use micropython-ftplib

Re: Web Client ESP32 micropython

Posted: Thu Dec 07, 2017 5:45 pm
by SpotlightKid
And here's a new online resource, that might help you: Python socket cheatsheet

Re: Web Client ESP32 micropython

Posted: Sat Dec 09, 2017 5:28 pm
by rdagger
Here's another great light weight web client for the ESP32 and it's very easy to use and well documented:

https://github.com/jczic/MicroWebCli