String()getBytes() \ Language (API) \ Wiring 1.0 (ALPHA)

| String

| Reference for Wiring 1.0 (ALPHA) 0019+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.

Class |  | String
Name |  | ### getBytes()
Examples |  |
    String str = "CCCP";
    byte array[] = str.getBytes();
    Serial.println(array);  // Prints 'CCCP'
Description |  | Return an array of bytes containing the characters of the string.
Syntax |  |
    getBytes()
Returns |  | byte[]
Usage |  | Web & Application