while (mySerial.available() > 0) {
for (int f = 0; f < 12; f++) {
addByte[index] = mySerial.read();
index++;
}
}
You are checking if one byte is available, and when it is, you are reading 12.
while (mySerial.available() > 0) {
for (int f = 0; f < 12; f++) {
addByte[index] = mySerial.read();
index++;
}
}
You are checking if one byte is available, and when it is, you are reading 12.