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.");
}