Skip to content

Instantly share code, notes, and snippets.

@nfarah86
Created May 5, 2016 01:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nfarah86/b5c0c3701754a9dc63434e7de8abfc36 to your computer and use it in GitHub Desktop.
Save nfarah86/b5c0c3701754a9dc63434e7de8abfc36 to your computer and use it in GitHub Desktop.
Get Serial Data from the Bean
// omitted tons of code
-(void)bean:(PTDBean*)bean serialDataReceived:(NSData*)data
{
NSString *receivedMessage=[[NSString alloc]initWithData:data encoding:NSASCIIStringEncoding];
NSLog (@"%@ this works", receivedMessage);
// omitted code
}
// omitted code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment