4.1.2.3. Device¶
-
class
fluxclient.upnp.device.
Device
(uuid, serial, master_key, disc_ver)¶ A Device object is an instance stores device information found from
fluxclient.upnp.UpnpDiscover
-
uuid
¶ Unique identification key of the device
-
serial
¶ Serial number of the device
-
master_key
¶ Master identification key of the device
-
discover_protocol_version
¶ Discovering protocol version of the device
-
status
¶ Returns the current status of the device.
Variables: - st_id (int) – Device status in integer.
- st_label (int) – Device status in str.
- st_prog (float) – Device running progress in percentage from 0.0 to 1.0. Only vaild while running task (st_id > 0).
- head_module (str) – Toolhead name installed on device.
- error_label (str) – Any error occour during the task.
- last_update (float) – Device status update timestemp.
Return type: dict
-
manage_device
(client_key, **kw)¶ Creates a device management sesssion.
Return type: fluxclient.upnp.task.UpnpTask
-
connect_robot
(client_key, port=23811, **kw)¶ Creates a robot connection
Return type: fluxclient.robot.robot.Robot
-
connect_camera
(client_key, port=23812, **kw)¶ Creates a camera connection
Return type: fluxclient.robot.camera.Camera
-
to_dict
(serialized=False)¶ Creates a new dictionay store device information
Parameters: serialized (bool) – Return a json serializeable dict if serialized is True. It is useful if you want to pass flux device information over file, socket or other serial devices
-