Skip to content

Instantly share code, notes, and snippets.

@orejuelajd
Last active December 23, 2016 05:29
Show Gist options
  • Save orejuelajd/664ac83bd84e778d87de32f8b0c540da to your computer and use it in GitHub Desktop.
Save orejuelajd/664ac83bd84e778d87de32f8b0c540da to your computer and use it in GitHub Desktop.
# Metodo para convertir un String a char* en arduino
```
char* string2char(String command) {
if (command.length() != 0) {
char *p = const_cast<char*>(command.c_str());
return p;
}
}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment