Add a Serial.flush(); after each message. If the sketch crashes and resets, any characters still in the output buffer are lost. The .flush() waits for all characters to leave the output buffer.
1 Like
Add a Serial.flush(); after each message. If the sketch crashes and resets, any characters still in the output buffer are lost. The .flush() waits for all characters to leave the output buffer.