MMS Acceleration

Good morning,
I am writing because in my code to obtain the acceleration of the accelerometers I use the following code:
private Accelerometer accelerometer;
private static MetaWearBoard metawear;
if ((accelerometer = metawear.getModule(Accelerometer.class)) != null) {
accelerometer.acceleration().addRouteAsync(new RouteBuilder() {...}
}
With the MMR and MMRL there is no problem and it returns the acceleration correctly but with the MMS accelerometer it does not enter the 'if' loop.

How can I get the acceleration data from the MMS accelerometers, since 'metawear.getModule(Accelerometer.class)' is not working for this type of accelerometer?

Thank you very much.

Sign In or Register to comment.