Page 1 of 3
ESP8266 send data to localserver
Posted:
Wed Jan 04, 2017 5:22 pm
by ronalcover
Hey guys, I'm new to ESP8266. I'm using the ESP-12E. I have this iOT project that has sensors and I want those sensor's data to display on a webpage (HTML). And I've seen lots of tutorials using cloud data sites on storing the data. Is there any other way of sending data to a webserver without using cloud data sites? I wanted to send it to a local server like Apache. Can you guys help me please.
Re: ESP8266 send data to localserver
Posted:
Fri Jan 06, 2017 4:50 am
by jeffas
I'm not sure that I understand the problem. Wherever you want to upload the data to, you have to tell the ESP the hostname or IP address of the server. Just tell it the hostname or IP address of your local server, and that is where it will send the data. Of course you have to be running something on your local server (e.g. Apache, as you said) that is ready to receive the data in the format that the ESP sends it.
Is this actually your question? "How do I receive data in Apache?"
Re: ESP8266 send data to localserver
Posted:
Fri Jan 06, 2017 9:06 am
by martinayotte
When using Apache as the server, since most language such Python or PHP have adequate libraries, I suggest to use JSON as the communication format.
Re: ESP8266 send data to localserver
Posted:
Fri Jan 06, 2017 2:51 pm
by ronalcover
jeffas wrote:I'm not sure that I understand the problem. Wherever you want to upload the data to, you have to tell the ESP the hostname or IP address of the server. Just tell it the hostname or IP address of your local server, and that is where it will send the data. Of course you have to be running something on your local server (e.g. Apache, as you said) that is ready to receive the data in the format that the ESP sends it.
Is this actually your question? "How do I receive data in Apache?"
Ok Ok I understand a bit now, How can I send those data to the MySql Database from my localserver?