i want to send some data to my web page using GET METHOD. I am using a gsm shield to accomplish that and in a way it works, but only if i put the url with the values prefixed in the arduino code myself.
this is the code i am currently using to send the data in my db
My goal though is to replace these values with variables. I've written this code but it doesn't seem to work.
int dat=5; float temp=100; float hum=200; int soil=300; String last = "NOW()"; String stringOne = "http://arduinowateringsystem.com/sensor_values.php?dat="; String stringTwo = stringOne + dat + "&temp=" + temp + "&hum=" + hum + "&soil=" + soil + "&last=" + last; mySerial.println("AT+HTTPPARA=\"URL\",\"strinOne,stringTwo \"");
Can anyone help me with this? thanks in advance!