Convert String to int

Grumpy_Mike:

I receive two chars and buffer them in a char array.

Make sure that there are two things in the buffer to receive before you do this:-

if(Serial.available() >2) {  

Str[0] = softSerial.read();
Str[1] = softSerial.read();
}

Yes I do :), I already receive a Char before each 2 chars, so I'm sure that the buffer has minimum of 2 chars.

Thanks a lot :slight_smile: