So I have some sensors which I would like to connect to a php script I and stores the GET data as variables.
I can curl to the script by hardcoding the values ie
but when I try using
it produces an error complaing that the int data has to be converted to a string...
so I do the same thing but I wrap the variable in String(dataVariable) and it works although the variable now uploads as 0 each time.
I'm storing the data as an int on both my database and on the arduino sketch .. it is holding data from 100 - 15000 so I assume an int is ok to hold it (it works fine when I send it to the Console to view but just wont upload well)