Something strange happen using SoftwareSerial
I will try to summary what I am doing and give only the relevant information.
Module2.listen();
incomingByte = Module.read();
if (incomingRE == 19){
Serial.print(incomingByte, HEX);
Serial.print(","); }
if ((incomingByte == 0x22) && (incomingRE == 19)){
Serial.println("");
incomingRE = 20;
}
if (incomingRE == 20) {
Serial.print(incomingByte, HEX);
Serial.print(",");
counter = 0;
}
if ((incomingByte == 0xFFFFFFFF) && (counter < 4)) {
Serial.println("DONE");
counter++;
// incomingRE = 21;
}
It should print a number of values received from de Module (serial transmission) but it print only one on the serial monitor at the PC the strange thing is if I start printing 0xFFFFFFFF to the PC it does print all the values.
Have you got any ideas why this is happening? Thanks