Back to project page BleSensorTag.
The source code is released under:
MIT License
If you think the Android project BleSensorTag listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package sample.ble.sensortag.fusion.sensors; /* w w w . j a v a 2s .co m*/ import android.hardware.Sensor; import sample.ble.sensortag.fusion.sensors.ISensor; public class AndroidSensor implements ISensor { public final Sensor sensor; public AndroidSensor(Sensor sensor) { this.sensor = sensor; } @Override public float getMaxRange() { return sensor.getMaximumRange(); } @Override public int getType() { return sensor.getType(); } }