Get Hardware Interface name

HouseBot Plugin Development Discussions.
Post Reply
yaccri
HouseBot Special Member
Posts: 304
Joined: Wed May 07, 2003 2:19 pm
Location: Tel-Aviv, Israel
Contact:

Get Hardware Interface name

Post by yaccri »

Is it possible to get the Hardware Interface name?
I need to get the name (or at least its id reference number) both in the Hardware Interface and in the Device interface.

Thanks,

Yoram
yaccri
HouseBot Special Member
Posts: 304
Joined: Wed May 07, 2003 2:19 pm
Location: Tel-Aviv, Israel
Contact:

Re: Get Hardware Interface name

Post by yaccri »

Any suggestions?
Scott???
ScottBot
Site Admin
Posts: 2786
Joined: Thu Feb 13, 2003 6:46 pm
Location: Georgia (USA)
Contact:

Re: Get Hardware Interface name

Post by ScottBot »

Depends on where you are trying to get it from. You can't get it from a script. If you are wanting it FROM a hardware interface plugin, it seems you would already know your own name (so I'm guessing that's not where you want it from). There isn't an API for the Device to get this info, but if you are implementing both Device and Interface, you could implement the logic for QueryHardwareInterface() to return that information to the Device.
Scott
yaccri
HouseBot Special Member
Posts: 304
Joined: Wed May 07, 2003 2:19 pm
Location: Tel-Aviv, Israel
Contact:

Re: Get Hardware Interface name

Post by yaccri »

it seems you would already know your own name
When trying to get the value of the 'Name' property in the hardware interface, I got nothing.
I created a new property in the hardware interface, retrieved it using a query in the device plugin as you suggested, and that solvbed my problem.

Thank you,

Yoram
Post Reply