 
 Included is a Max/MSP patch for controlling a single LED on board.
 Max patch uses CNMAT OSC externals*/
-
 #include <ESP8266WiFi.h>
 #include <ESP8266WiFiMulti.h>
 // #include <WiFiClient.h>

    mpu.dmpGetQuaternion(&q, fifoBuffer);
    mpu.dmpGetGravity(&gravity, &q);
    mpu.dmpGetYawPitchRoll(ypr, &q, &gravity);
  }
  //=========================================================================//
}
    //declare a bundle
    OSCBundle bndl;
    bndl.add("/time").add((int32_t)millis()); //time since active :: indicates a connection
    bndl.add("/ypr").add(ypr[0]).add(ypr[1]).add(ypr[2]); // yaw/pitch/roll
    bndl.add("/batt").add(float((analogRead(A0) >> 2)-SCALED_V_MIN)/(SCALED_V_MAX - SCALED_V_MIN)); //battery voltage [0,1]
    bndl.add("/debug").add(min_ypr[0]).add(max_ypr[0]).add(min_ypr[1]).add(max_ypr[1]).add(min_ypr[2]).add(max_ypr[2]);

    Udp.beginPacket(outIp, outPort);
    bndl.send(Udp); // send the bytes to the SLIP stream
    Udp.endPacket(); // mark the end of the OSC Packet
