sterretje:
Why did you modify Robin's recvWithStartEndMarkers code?I guess this is the problem:
Your parser sets commands[6]. The initial value of commands[6] is 0; this is not 87 and hence the parser will never be called from showNewData().BTW, with a 1024 char buffer and a 200 byte buffer you're getting close to the limits of a 328 based board (Uno, Nano, ...); which board are you using?
i didnt modify that routine at all Robin did in the serial intro form those "New" parts are his, i only modified the parser. the parser sets commands[6] before it checks it for anything...
even if i modify the above mentioned code, I still get serial vomit because it doesnt work right
void showNewData() {
if (newData == true) {
parseData();
if (Commands[6] == 87){
//Serial.print("This just in ... ");
//Serial.println(receivedChars);
//parseData();
showParsedData();
newData = false;
}
}
}
Sketch uses 2966 bytes (1%) of program storage space. Maximum is 253952 bytes.
Global variables use 1551 bytes (18%) of dynamic memory, leaving 6641 bytes for local variables. Maximum is 8192 bytes.