Network

Hello

I want to hear if there are someone who know how to manage Arduino + Ethernet shield with an existing website, either pure html or flash?

What codes do you need to control the arduino?

I'm a noob :relaxed:

Sorry for my english...

Regards
Per

This web client code works well for me with my Apache web server.
http://playground.arduino.cc/Code/WebClient

That was quick XD

Yes but you are using your own server, I have my website by a provider. How can it communicate with Arduino?

Is it PHP or flash or??

Your Arduino code, acting as a client, can use HTTP GET and POST requests to fetch and update data on your external web site.

Your web server code can similarly use GET and POST requests to the Arduino to fetch and update data, once you configure your router to make it visible on the internet.

If you say a little more about what you're trying to accomplish, you might get better answers.

Good luck with your project,

-br

It's very simple.(ok simple it's probably not, since I'm new in this area) I want to be able to control some relays and get some input back with whether they are active or not.

Same way. Some virtual hosting servers require more in the request than that GET code sends. Take a look at the POST code example. I modified it a bit here so you can see where to remove the "Content-Length" if you require a GET request.

    // send the header
    sprintf(outBuf,"GET %s HTTP/1.1",page);
    client.println(outBuf);

    // this is required for a virtual server
    sprintf(outBuf,"Host: %s",domainBuffer);
    client.println(outBuf);

    // send blank (empty) line after this send
    client.println(F("Connection: close\r\n");

edit: I suggest using a simple request/response sketch until you get it working reliably with your server.

Fine and thanks, I will try it out. :smiley:

DonMeggi:
It's very simple.(ok simple it's probably not, since I'm new in this area) I want to be able to control some relays and get some input back with whether they are active or not.

You said "how to manage Arduino + Ethernet shield with an existing website". Are the relays at this existing web site? Do you have control of the server at that site? Does that server have I/O capability?

...or once the connection to the server is ok, then you can use the server as a message board. PHP and MySQL handle that ok if your server has that capability. One page for the Arduino to retrieve "messages", and another for the PHP/MySQL interface for your web browser to leave "messages" for the Arduino. Not real time, but for most stuff, it is ok.

This is not for the technologically faint of heart.

take a look at www.dataino.it is my website developed for arduino that can help u
u can add a project for reciving data from arduino and create graph or if u need control arduino u can d it
via web page.

the websit is in beta and i need opinion and neet to debag funciont if u test send me a report

thx

dataino-doc.pdf (1.12 MB)

control_bit_one.ino (5.05 KB)

Hello
I've been sick, that's why I first answer now.
I'll look at it later, just need to be completely recovered.
But thanks for all the answers.