Skip to content

Instantly share code, notes, and snippets.

@patriciogonzalezvivo
Created April 27, 2013 15:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patriciogonzalezvivo/5473487 to your computer and use it in GitHub Desktop.
Save patriciogonzalezvivo/5473487 to your computer and use it in GitHub Desktop.
Getting strings from ofSerial
string serialIn;
unsigned char buffer[1];
while( readBytes( buffer, 1) > 0){
if (buffer[0] == '\n'){
break;
}
serialIn.push_back(buffer[0]);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment