Hey Amy Have a look at the

Hey Amy

Have a look at the arduino ethernet client example sketch here:

http://arduino.cc/en/Reference/ClientConstructor

If you look at that sketch you will see it does a google search and reads back the search responce to the arduino. This could be the basis for how your code works. 

Create a perl file on your server that does a MYSQL SELECT from database command. print the output to the window. Similar to this example:

http://www.tizag.com/perlT/perlmysqlquery.php

Call the perl file on your server from your arduino.

Read the output of the perl file using this part of the client example:

if (client.available()) {

    char c = client.read();
    Serial.print(c); 

}

Hope that helps :)

 

Reply

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

More information about formatting options