 #include "Particle.h"
-
-#include "Adafruit_10DOF_IMU/Adafruit_10DOF_IMU.h"
+#include<Wire.h>
+//#include "Adafruit_10DOF_IMU/Adafruit_10DOF_IMU.h"
 
 SYSTEM_THREAD(ENABLED);
 

		break;
	}
}

void sendData(void) {
	// Called periodically when connected via TCP to the server to update data.
	// Unlike Particle.publish you can push a very large amount of data through this connection,
	// theoretically up to about 800 Kbytes/sec, but really you should probably shoot for something

// Sensors

/* Assign a unique ID to the sensors */
// Adafruit_10DOF dof;
// Adafruit_LSM303_Accel_Unified accel(30301);
// Adafruit_LSM303_Mag_Unified mag(30302);
// Adafruit_BMP085_Unified bmp(18001);
// float seaLevelPressure = SENSORS_PRESSURE_SEALEVELHPA;

const int MPU_addr=0x68;  // I2C address of the MPU-6050
int16_t AcX,AcY,AcZ,Tmp,GyX,GyY,GyZ;

enum State { STATE_REQUEST, STATE_REQUEST_WAIT, STATE_CONNECT, STATE_SEND_DATA, STATE_RETRY_WAIT };
State state = STATE_REQUEST;
