ifm3dpy.device.IFMNetworkDevice
- class ifm3dpy.device.IFMNetworkDevice
Bases:
objectDescribes an ifm device discovered on the local network.
Instances are returned by
ifm3dpy.device.Device.device_discovery().- __init__(self: IFMNetworkDevice, data: Sequence[int], ip_address_via_interface: str) None
Constructor
- Parameters
data (
list[int]) – The raw discovery reply as received from the device.ip_address_via_interface (
str) – The IP address of the local interface the reply was received on.
Methods
__init__(self, data, ip_address_via_interface)Constructor
has_flag(self, flag)Check whether the given flag is set for this device.
Attributes
The device id identifying the device model.
The user assigned name of the device.
The device flags reported during discovery.
The IP address of the local interface the device was discovered on.
The default gateway configured on the device.
The host name of the device.
The IP address of the device.
The MAC address of the device.
The network mask configured on the device.
The XMLRPC port of the device.
The vendor id of the device.
- has_flag(self: IFMNetworkDevice, flag: int) bool
Check whether the given flag is set for this device.
- property device_id
The device id identifying the device model.
- property device_name
The user assigned name of the device.
- property flags
The device flags reported during discovery.
- property found_via
The IP address of the local interface the device was discovered on.
- property gateway
The default gateway configured on the device.
- property host_name
The host name of the device.
- property ip_address
The IP address of the device.
- property mac_address
The MAC address of the device.
- property netmask
The network mask configured on the device.
- property port
The XMLRPC port of the device.
- property vendor_id
The vendor id of the device.