Class OhmSensor

java.lang.Object
oshi.driver.windows.wmi.OhmSensor

@ThreadSafe public final class OhmSensor extends Object
Utility to query Open Hardware Monitor WMI data for Sensors
  • Method Details

    • querySensorValue

      public static com.sun.jna.platform.win32.COM.WbemcliUtil.WmiResult<OhmSensor.ValueProperty> querySensorValue(WmiQueryHandler h, String identifier, String sensorType)
      Queries the sensor value of an hardware identifier and sensor type.
      Parameters:
      h - An instantiated WmiQueryHandler. User should have already initialized COM.
      identifier - The identifier whose value to query.
      sensorType - The type of sensor to query.
      Returns:
      The sensor value.