Hello!!
Is this piece of code correct? I don't know if is possible the allocation to "X" and "Message" because the operation that I do with them I don't know if they are correct or possible. The problem is that I don't get that the Serial Monitor shows me "Message" because the Serial.println doesn't run. What is the problem?? Thanks!!!
int valor = 2056;
String X= "";
String Message= "";
for (i= 0; i <2; i++)
{
valor += valor+i;
X += String (valor) + ",";
}
Message = "CA" + X + "@";
Serial.println (Message);
UKHeliBob you have reason is a fail that I have written but in this forum, in the code is OK. So it isn't the problem, but thanks.
X+= String (valor) + ",";
AWOL, I don't understand it, what is the problem with the definition? X is a variable of type STRING that I initialize to "". What do you want to tell me?, because I don't understand your question. Thanks!
I think that here, at the begining of the first post is clear, are you agree? X is a String because in the declaration I have written String X = "";
The same with Message. Is it wrong declared?