Timeline for A question about chars and Serial
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 16, 2016 at 9:18 | history | edited | Arjan | CC BY-SA 3.0 |
Made clear it's not string length of 96
|
Mar 6, 2016 at 2:42 | vote | accept | Sebastian Freeman | ||
Mar 6, 2016 at 2:42 | |||||
Mar 5, 2016 at 20:07 | comment | added | Dave X | Note that the serial_message[96] is initialized with zeros at the beginning, providing default null terminations for strings up to 96 characters long. What might be interesting is what would happen if one sends strings 96 or more characters long. At 96, the Serial.println() wouldn't stop printing until it hits a null in whatever is after the buffer in memory, and if you sent more than 96 characters, it could write over important RAM and crash. | |
Mar 5, 2016 at 16:00 | history | edited | Arjan | CC BY-SA 3.0 |
Removed obsolete details
|
Mar 5, 2016 at 14:37 | comment | added | Sebastian Freeman | Oops. I changed it and forgot to change all of it. I have edited it to be correct. Thank you! | |
Mar 5, 2016 at 14:08 | history | answered | Arjan | CC BY-SA 3.0 |