First I would like to say that I have looked this up in Google but I guess I either don't understand the problem well enough or the answers are not for my specific instance of the problem...
I am just trying to take serial input and add the value to the sMessage string.
int i, MessageLength, Message[10];
void setup()
{
Serial.begin(115200);
}
void loop()
{
String Smessage(Message);
if(Serial.read() == '
Can someone lead me in the direction of what I am doing wrong??)
{
for(i=0; i<10; i++)
{
delay(1);
Message[i] = Serial.read();
if(Message[i]=='/')
break;
}
MessageLength = i;
for(i=0; i<MessageLength; i++)
{
Serial.print(char(Message[i]));
}
Serial.print(Smessage);
}
Can someone lead me in the direction of what I am doing wrong??