Hello everyone.
I am working with AprilBrother-Android-SDK Demo project.
Lib version: 1.6.1
Code:
conn = new AprilBeaconConnection(this, beacon);
conn.connectGattToWrite(new MyWriteCallback() {
@Override
public void notifyABAcceleration(ABAcceleration abAcceleration) {
Log.i(TAG, "-----------------");
Log.i(TAG, " x = " + abAcceleration.getX());
Log.i(TAG, " y = " + abAcceleration.getY());
Log.i(TAG, " z = " + abAcceleration.getZ());
tv_ac_x.setText(abAcceleration.getX() + "");
tv_ac_y.setText(abAcceleration.getY() + "");
tv_ac_z.setText(abAcceleration.getZ() + "");
super.notifyABAcceleration(abAcceleration);
} }, BEACON_PASSWORD);
Beacon’s firmware: 2.2a
hardware: 1.4a
How can i get data from beacon’s accelerometer ?
Thanks!