I am trying to do a form post however when I compile the code it comes up with the error “expected ‘;’ before serialNumber”
Here is the section of the code which is giving me the trouble
request.body = "{\"PARTICLESN\"=" serialNumber "}";
I am trying to do a form post however when I compile the code it comes up with the error “expected ‘;’ before serialNumber”
Here is the section of the code which is giving me the trouble
request.body = "{\"PARTICLESN\"=" serialNumber "}";
The code above has an error in the number of double-quotes. Is serialNumber a variable you are trying to print the value of or is it supposed to be the literal string serialNumber? Assuming it is a variable:
request.body = String("{\"PARTICLESN\"=");
request.body += serialNumber;
request.body += "}";
Or about a million other ways you could do this!