Class BodySensorLocation

java.lang.Object
com.codename1.health.sensors.BodySensorLocation

public final class BodySensorLocation extends Object

The values of the Body Sensor Location characteristic, 0x2A38, as reported by SensorSession.getBodySensorLocation().

Worth surfacing: a wrist-worn optical sensor and a chest strap have materially different accuracy during hard efforts, and telling the user which one is feeding a reading is more honest than presenting both as equivalent.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Chest -- a strap; the most accurate of these placements.
    static final int
    Earlobe.
    static final int
    Finger.
    static final int
    Foot.
    static final int
    Hand.
    static final int
    Somewhere the profile does not name.
    static final int
    Wrist -- an optical sensor in a watch or band.
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    describe(int location)
    A human-readable name for a location constant.

    Methods inherited from class Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Method Details

    • describe

      public static String describe(int location)
      A human-readable name for a location constant.