def launch_agents(module, properties): log.debug(module) log.debug(properties) if properties['type'] == 'folder': exit() elif properties['type'] == 'modbus': log.debug('Modbus agent : %s' % module) modbus.modbus_loop(module, properties) elif properties['type'] == 'screen': exit()
def launch_agents(module, properties): log.debug(module) properties['bitrate'] = bitrate log.debug(properties) if properties['type'] == 'folder': log.debug('Instanciating a file transfer module :: %s' % module) watch_folder(properties) elif properties['type'] == 'modbus': log.debug('Modbus agent : %s' % module) modbus.modbus_loop(module, properties) elif properties['type'] == 'screen': log.debug('Screen sharing agent : %s' % module) screen.watch_folder(module, properties)
def launch_agents(module, properties): log.debug(module) if properties['type'] == 'folder': log.debug('Instanciating a file transfer module :: %s' % module) watch_folder(properties) elif properties['type'] == 'modbus': log.debug('Modbus agent : %s' % module) modbus.modbus_loop(module, properties) elif properties['type'] == 'screen': log.debug('Screen sharing agent : %s' % module) screen.watch_folder(module, properties) elif properties['type'] in ['udp-redirect', 'udp_redirect']: log.debug('UDP-redirect agent : %s' % module) udp_redirect(properties)