   Serial.print(ay);
   Serial.print(" / az:");
   Serial.println(az);
-  delay(100);
+
+  IMUAXChar.setValue(ax);
+  IMUAYChar.setValue(ay);
+  IMUAZChar.setValue(az);
+
+  delay(10);
 }

#include "CurieIMU.h"


void setup() {



  // Set accelerometer range to 2G
  CurieIMU.setAccelerometerRange(2);

  // Setting for BLE device
  blePeripheral.setLocalName("IMUTestSketch");
  blePeripheral.setAdvertisedServiceUuid(IMUService.uuid());
  blePeripheral.addAttribute(IMUService);
  blePeripheral.addAttribute(IMUAXChar);
  blePeripheral.addAttribute(IMUAYChar);
  blePeripheral.addAttribute(IMUAZChar);
  IMUAXChar.setValue(0);
  IMUAYChar.setValue(0);
  IMUAZChar.setValue(0);

  blePeripheral.begin();
}

void loop() {
