How do I combine both string and array in a string variable in Arduino's C/C++ dialect? I tried to run below lines but doesnt work.
int j = 0;
String value1[] = {0,1,2,3};
String httpRequestData = "&value1=" + value1[i] + "";
//then number of j++
You need to initialize your string before concatenate different types.
More details here https://www.arduino.cc/en/Tutorial/StringAdditionOperator
int j = 0;
int value1[] = {0,1,2,3};
String httpRequestData = String("&value1=");
httpRequestData += value1[i];
"&value1=" + value1[i] doesn't do what you think it does and it is wrong.sprintf(buff,"%d",value[i]) ... but now I cannot try if my concern is true! Elsewhere I think the correct way should be: sprintf(buff,"%d",value[i].toInt())stringThree = stringOne + 123;"&value1=" is a C string literal and value[i] is int. Maybe int value1[] is a typo in your answer.String not a char * and an int, check the shared link. Not saying this is clean, but this is the arduino way to do
doesnt workis not very clear.