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
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
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.
-
Field Details
-
SENSOR
- See Also:
-
-
Constructor Details
-
OhmSensor
private OhmSensor()
-
-
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.
-