Ok, so I can't quite get the ethernet shield to work right
xport.print("GET ");
xport.print(HTTPPATHIN);
xport.print("?temp1=");
if(negI == 1){
xport.print("-");
}
xport.print(tempIn, DEC);
if(decI == 1){
xport.print(".5");
}
else{
xport.print(".0");
}
xport.println(" HTTP/1.1");
xport.print("Host: ");
xport.print(HOSTNAME);
Everything works fine there, however when I do something like this
xport.print("GET ");
xport.print(HTTPPATHIN);
xport.print("?temp1=");
if(negI == 1){
xport.print("-");
}
xport.print(tempIn, DEC);
if(decI == 1){
xport.print(".5");
}
else{
xport.print(".0");
}
[glow]xport.print("&temp2=");[/glow]
if(negO == 1){
xport.print("-");
}
xport.print(tempOut, DEC);
if(decI == 1){
xport.print(".5");
}
else{
xport.print(".0");
}
xport.println(" HTTP/1.1");
xport.print("Host: ");
xport.print(HOSTNAME);
It will not go through. I also tried
xport.print("GET ");
xport.print(HTTPPATHIN);
xport.print("?temp1=23.9&temp2=38.2");
xport.println(" HTTP/1.1");
xport.print("Host: ");
xport.print(HOSTNAME);
That doesn't work either
I can go into a web browser and type int ../.../arduino.php?temp1=23.9&temp2=38.2 and it will work.
Any ideas why it's not sending it correctly when I add the &?