0

My RFDuino is sending data every 2 seconds.

I can see what's being sent via the Arduino Serial manager but I'd like to log this out in Xcode.

What method do I need to use to NSLog this?

Luke Irvin
  • 1,179
  • 1
  • 20
  • 39

1 Answers1

0

Set RFDuinoDelegate to your view. DidReceive method should be called automatically with the data been sent from the rfduino

Example here with receiving string data in Swift

func didReceive(data: NSData!) {

    var stringData: String = NSString(data: data, encoding: NSUTF8StringEncoding)! as! String
}
Greg Lukosek
  • 1,774
  • 20
  • 40