Package oshi.driver.windows.wmi
Class OhmSensor
java.lang.Object
oshi.driver.windows.wmi.OhmSensor
Utility to query Open Hardware Monitor WMI data for Sensors
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
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 instantiatedWmiQueryHandler
. User should have already initialized COM.identifier
- The identifier whose value to query.sensorType
- The type of sensor to query.- Returns:
- The sensor value.
-