modi_plus.module package

Subpackages

Submodules

modi_plus.module.module module

Module module.

class modi_plus.module.module.InputModule(id_, uuid, connection_task)[source]

Bases: Module

class modi_plus.module.module.Module(id_, uuid, connection_task)[source]

Bases: object

Parameters:
  • id (int) – The id of the module.

  • uuid (int) – The uuid of the module.

ERROR_STOP = 3
FORCED_PAUSE = 2
exception GetValueInitTimeout[source]

Bases: Exception

PNP_OFF = 2
PNP_ON = 1
class Property[source]

Bases: object

REBOOT = 6
RUN = 0
UPDATE_FIRMWARE = 4
UPDATE_FIRMWARE_READY = 5
WARNING = 1
property app_version
property id: int
property is_up_to_date
property os_version
update_property(property_type: int, property_value: bytearray) None[source]

Update property value and time

Parameters:
  • property_type (int) – Type of the updated property

  • property_value (bytearray) – Value to update the property

property uuid: int
class modi_plus.module.module.ModuleList(src, module_type=None)[source]

Bases: list

find(module_id)[source]
get(module_id)[source]
sublist()[source]

When accessing the module, the modules are sorted in an ascending order of 1. the connected time from network module

Returns:

Module

class modi_plus.module.module.OutputModule(id_, uuid, connection_task)[source]

Bases: Module

class modi_plus.module.module.SetupModule(id_, uuid, connection_task)[source]

Bases: Module

modi_plus.module.module.ask_modi_plus_device(devices)[source]
modi_plus.module.module.get_module_from_name(module_type: str)[source]

Find module type for module initialize

Parameters:

module_type (str) – Type of the module in string

Returns:

Module corresponding to the type

Return type:

Module

modi_plus.module.module.get_module_type_from_uuid(uuid)[source]

Module contents