Address type in entity-manager repo

Deng Tyler tyler.sabdon at gmail.com
Tue Jul 16 17:15:17 AEST 2019


Hi All:
    I am investigated entity-manager with dbus-sensors. In entity-manager,
the schema define Address type is string as below
---------------------------------------------------
            "type": "object",
            "properties": {
                "Exposes": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "properties": {
                            "Address": {
                                "type": "string"      <== here
                            },
                            "Name": {
                                "type": "string"
                            },
--------------------------------------------------------
In dbus-sensor application, cpusensor get CPU configuration from DBUS. But
the type is mismatch and cause cpusensor terminated.
*journalctl:*
cpusensor[296]: terminate called after throwing an instance of
'std::invalid_argument'
cpusensor[296]:   what():  Cannot translate type to unsigned int

I found code in cpusensor to get "Address" and type shall be integer from
dbus as below
[image: image.png]
But in dbus the Address property is string
[image: image.png]

Is this code error? or I miss something? thanks.

Tyler
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20190716/0bc54a7f/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 14670 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20190716/0bc54a7f/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 7038 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20190716/0bc54a7f/attachment-0003.png>


More information about the openbmc mailing list