I am trying to use Openhardwaremonitor.dll to read CPU temperature, but not able to get it right.
If cp. = SensorType.Temperature Then
Trace.WriteLine([String].Format("{0} Temperature = {1}", sensor.Name, If(sensor.Value.HasValue, sensor.Value.Value.ToString(), "no value")))
End If
The Error is saying:
Error 4 'OpenHardwareMonitor.Hardware.Sensor' is not accessible in this context because it is 'Friend'.
however a friend function should be accessible as I've imported the DLL in the program.
Please help
Anyways, I get the answer. All we have to make a call to.
getCompleteInfo()
Rest is on manipulation of the output.