A place users can post their projects. If you have a small project and would like your own dedicated place to post and have others chat about it then this is your spot.

User avatar
By Bert van den Berg
#26304
kolban wrote:Howdy Bert,
I think our challenge will be elaborating on "send instructions to the ESP8266 to put data onto the network". Unfortunately one doesn't just "push data" onto the Internet and there it is ... wish it were that simple. Classically, what one does is have a Web Server which sends HTML pages to a browser. Within your web page, you typically have JavaScript which makes an AJAX call to service provider to get data. That data is then received by the browser and the JavaScript then interprets the data and inserts it into the web page usually by changing the DOM model.

The ESP8266 should be acting as an endpoint for an AJAX call presumably arriving via a REST request. When the ESP receives that request it should poll the sensor, retrieve the data and send that back to the caller. This can be done all on-board the ESP or in combination with an Arduino using the AT command interfaces.

Now ... this does indeed sound like gobbldy gook but it is what it is ... maybe there is an opportunity here for a generic project that that does 99% of the work for us and merely opens up the place where we "plug in sensor data here" .... but I don't think there is such a sample yet ... but it does sound like a good idea.

Neil


Hi Neil,

Thanks for your prompt response. Yes, it's way over my head but I found a way to get the data onto the internet using just simple AT commands.

I am now able to direct the browser to our live IP address:port# and get data sent to the ESP8266 via the serial port. I'm happy to write up a description to share with others if you think others might be interested. At this time it's just working by sending AT command macros with Bray Terminal but will now implement a version written in C.

Was able to get it on our local network private IP address with relative ease but to get it onto the world wide web I had to get our wireless router to forward the ESP8266 port to the routers live IP address. Now I'm able to access the data on my Android smart phone via the 3G network. It only took four days of studying and looking at a lot of other people's posts. The one that provided me the most insight (due to it being fairly non-technical) was this: http://www.instructables.com/id/Using-t ... /?ALLSTEPS.

Regards,

Bert