ifm3dpy.device.IFMNetworkDevice

class ifm3dpy.device.IFMNetworkDevice

Bases: object

Describes 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

device_id

The device id identifying the device model.

device_name

The user assigned name of the device.

flags

The device flags reported during discovery.

found_via

The IP address of the local interface the device was discovered on.

gateway

The default gateway configured on the device.

host_name

The host name of the device.

ip_address

The IP address of the device.

mac_address

The MAC address of the device.

netmask

The network mask configured on the device.

port

The XMLRPC port of the device.

vendor_id

The vendor id of the device.

has_flag(self: IFMNetworkDevice, flag: int) bool

Check whether the given flag is set for this device.

Parameters

flag (int) – The flag to check for.

Returns

True if the flag is set

Return type

bool

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.