Post topics, source code that relate to the Arduino Platform

User avatar
By stefanmahr
#11661 Hallo,

I am a student at a technical collage at vienna, austria and I need for a school project the following function, but I don't know how I can do this. For my project I use an Arduino Mega 2560 with a ESP8266 Wifi-Modul. I can connect this to the Wifi-Network but I have no idea how I con do the other operations.

Image

1. Step:

Every 10 minutes the Arduino have to contact my server with a HTTP-Request like this: http://www.example.com/weather.php?station=1

2. Step:

The Server gave out a XML File wich I would like to use to display the weather data from a Database on the TFT Display which I have connect with my Arduino too.


My problem:

The problem is how can I do this request and how I can work with the data wich I get from the XML? I have no problem with the server-side coding only with the code for the Arduino.

I hope someone of you have a solution for my problem and can help me that this works.

Best greetings,

Steven Mahr
User avatar
By h4u
#11688 Hi there!
Very cool project.
You can take example how i get and format data from client to server how i make in this video.
All files is there ready for download!!!!
Ps. im from Germany too but my german is on basic level.Best regards.
User avatar
By stefanmahr
#11727 Hallo,

thanks for your answer! But I think is unfortunately that what I mean...

My Arduino with ESP8266 should be a client and the server is a web server what is every time running and create the XML File for the Arduino.

Maybe you have a idea for this, too?

Best greetings,

Stefan Mahr
User avatar
By h4u
#11738 Yes i'm understand very well,you need my files,server in your case i mean esp8266,look up my files,recive data from your real server,manage data received and this is the answer.If you have problem,but try first,send me your xml file from server i will write you sketch for arduino,but try yourself first,i have free time only in weekend.My mail melanrz@gmail.com