Timeline for Arduino substring not working
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 15, 2016 at 22:26 | vote | accept | user2279603 | ||
| Feb 15, 2016 at 22:23 | comment | added | Majenko |
Serial.println(l1.substring(0,5));
|
|
| Feb 15, 2016 at 22:22 | comment | added | user2279603 | I'm not sure how to return a substring | |
| Feb 15, 2016 at 22:17 | comment | added | Majenko | Try printing what substring returns so you can see what it's really doing. Your string might not be exactly what you think it is. | |
| Feb 15, 2016 at 22:16 | comment | added | user2279603 | I already tried that and it didn't work | |
| Feb 15, 2016 at 22:10 | history | answered | Majenko | CC BY-SA 3.0 |