User`s manual
64
add_module
Adds a module without stopping gateway execution. The module is scanned after it has
been added and any interface, endpoint, cluster, or record classes are immediately
available for use in other interface commands. The module will also be added to
modules.ini so that on startup the module will still be imported.
Note: The module’s .py, .pyc or .pyo file must first be uploaded to the gateway before it can be added by
this method. A .py file takes significantly more memory then a .pyc or .pyo file. If your gateway is
running low on memory consider precompiling added python modules.
Parameter Type Description
module_name string Name of the module to be imported (do not include file extension).
Parameter Type Description
module_name string Name of the module that was imported.
add_module Parameters:
add_module_response Parameters:
remove_module
Removes the module from modules.ini so that it will not be imported on startup. Modules
not imported from modules.ini on startup or via the add_module command cannot be
removed by this request. If the module provided is not currently loaded then no error is
indicated but the module will still be removed from modules.ini if present. Note that this
will not delete the corresponding .py, .pyc or .pyo file from the gateway. The module will
not be removed from RAM unless the Python program is restarted through reboot or the
exit RPC command (see exit on page 71).
Parameter Type Description
module_name string Name of the module to be removed (do not include file extension).
Parameter Type Description
module_name string Name of the module that was removed.
remove_module Parameters:
remove_module_response Parameters:










