Skip to main content
2 of 2
Capitalization, streamlining.
dlu
  • 1.7k
  • 2
  • 15
  • 29

How to clear of contents of string in Arduino?

Currently I convert the characters in char received[20] to string using String randomString(received) and I am able to display it using Serial.println(randomString). After displaying the string, I would like to know the easiest way to clear out its contents.

adrian.wong
  • 17
  • 1
  • 2
  • 3