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
Get Hardware Interface name
-
- HouseBot Special Member
- Posts: 304
- Joined: Wed May 07, 2003 2:19 pm
- Location: Tel-Aviv, Israel
- Contact:
Re: Get Hardware Interface name
Any suggestions?
Scott???
Scott???
Re: Get Hardware Interface name
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
-
- HouseBot Special Member
- Posts: 304
- Joined: Wed May 07, 2003 2:19 pm
- Location: Tel-Aviv, Israel
- Contact:
Re: Get Hardware Interface name
When trying to get the value of the 'Name' property in the hardware interface, I got nothing.it seems you would already know your own name
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