-->
Page 1 of 1

Best way to send data from Arduino to webpage

PostPosted: Sun Jul 19, 2015 1:04 am
by Mike Bedford
Hello all,

I have some data on my Arduino that I want to send to my website/webpage so the webpage can log and show the data. I am sure this has been done over and over again and I have seen some posts in the forum but there seem to be several different approaches.

General question, what is the best way anybody might have had experience with sending data from the Arduino, to the ESP8266 and then to the webpage? The ESP8266 will have already been connected to my router and have access to the webpage.

Thanks!

Mike

Re: Best way to send data from Arduino to webpage

PostPosted: Sun Jul 19, 2015 4:06 am
by tytower
Again i have written an arduino ide code to do that in the wiki on this page (scroll up).
It wakes up ,reads sensors , sends the data and goes back to sleep. When the modem is not available it goes to sleep and checks back periodically. It ought to be fairly straightforward to alter it to allow whatever time you need to gather the data then connect then sleep . The act of deepSleep() closes the connection and restarts the chip from the start of the program.