Page 1 of 1

Get Hardware Interface name

Posted: Thu Nov 25, 2010 5:56 am
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

Re: Get Hardware Interface name

Posted: Tue Nov 30, 2010 2:18 pm
by yaccri
Any suggestions?
Scott???

Re: Get Hardware Interface name

Posted: Tue Nov 30, 2010 4:58 pm
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.

Re: Get Hardware Interface name

Posted: Sun Dec 05, 2010 7:32 am
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