links · people · groups · tags | My: links · tags · groups · watchlists · notes login · sign up now! | help · blog
Simpy simpy
 
Michael Shook, member since May 27, 2004
.
Search Everyone: ("sheild") and "sheild",
1 - 1 of 1   Watch mshook
 
void httpRequest()
{
  byte theByte;

  xPortSerial.print("GET ");
  xPortSerial.print(PHP_PAGE_LOCATION);

  // value0 = 123 and value1 = 456
  // You should change these to be your sensor values or whatever you want to send
  // (see php code if you want to add more values or change the names value0/value1
  xPortSerial.print("?value0=123&value1=456");
  xPortSerial.print(" HTTP/1.1n");
  xPortSerial.print(WEB_HOST);

  while(!xPortSerial.available()) {} // Just loop until available
  theByte = xPortSerial.read();
  if (theByte != 0)
    Serial.println("Passed.");
  else
    Serial.println("Failed.");
}
by mshook 2009-07-02 05:44 arduino · ethernet · server · client · avr · howto · code · php · c · sheild
http://www.glacialwanderer.com/hobbyrobotics/?p=15 - cached - mail it - history
1 - 1 of 1  
Related Tags
 
- exclude ~ optional + require
Add Dates