GMU:Tutorials/Performance Platform/Controlling an Arduino with The Captury: Difference between revisions

From Medien Wiki
Line 185: Line 185:


void OscMsg(OSCMessage &msg){
void OscMsg(OSCMessage &msg){
  //Using SLIPSerial to get serial data
   
/* while(!SLIPSerial.endofPacket())
  {
    int size = SLIPSerial.available();
    if (size > 0)
    {
        //fill the msg with all of the available bytes
        while(size--)
        {
            msg.fill(SLIPSerial.read());
        }
    }
   
  }
 
  if (msg.isString(0))
  {
    //get that String
    int data = msg.getString(0);
  }*/
   OSCBundle bundleIN;
   OSCBundle bundleIN;
   int size;
   int size;