Query Sensor

Ed Tanous edtanous at google.com
Tue Jan 11 10:50:06 AEDT 2022


On Mon, Jan 10, 2022 at 3:47 PM Mike Jones <proclivis at gmail.com> wrote:
>
> Hi,
>
> I could not find an example of a sensor query in the docs. I assume something like this:
>
> dbus-send --system --print-reply \
>
> --dest=xyz.openbmc_project.Hwmon-5a446562b1a2e55ef11da905907088a187a66b71eb7a1f29187594c05bb8fd9a.Hwmon1 \
>
> /xyz/openbmc_project/sensors/temperature/lm75temp
>
> xyz.openbmc_project.Sensor.Property.Get xyz.openbmc_project.Sensor.Value \
>
> double:
>

I don't have an example offhand, but the interface you're looking for
in the bolded area is
org.freedesktop.DBus.Properties.Get

Stack overflow for essentially the same question with an example:
https://stackoverflow.com/questions/48648952/set-get-property-using-dbus-send

>
> With the bold interface replaced with something correct.
>
> Can some one give me an example, and a url about how to query properties?
>
> Mike
>
> Sent from my iPad


More information about the openbmc mailing list