I'm stuck at trying to figure out the correct data types for T1 and P1 (see below).
Compiler error:
weather_station_v1_2.ino:76:37: error: invalid operands of types ‘const char*’ and ‘const char [11]’ to binary ‘operator+’
The Code:
if (status != 0) {
delay(status);
status = pressure.getPressure(P,T);
const unsigned char P1 = pressure.getTemperature(P);
const unsigned char T1 = pressure.getTemperature(T);
byte data = "temp" + T1 + "&pressure=" + P1;
httppost();
delay(1000);
}
At the end data will be send to a PHP server, but it has to follow the scheme name1=value1&name2=value2.
Would you be so nice and give me a hint about what I'm doing wrong? Thanks
snprintf()?