MCPcopy Create free account
hub / github.com/LabPy/lantz / create_actuator_server

Function create_actuator_server

lantz/simulators/experiment.py:42–52  ·  view source on GitHub ↗
(actuator)

Source from the content-addressed store, hash-verified

40 self.port = port
41
42def create_actuator_server(actuator):
43 logging.info('Creating fungen server')
44 args = Namespace('localhost', 5678)
45 actuator_server = instrument.main_tcp(actuator, args)
46 logging.info('Fungen: interrupt the program with Ctrl-C')
47 try:
48 actuator_server.serve_forever()
49 except KeyboardInterrupt:
50 logging.info('Fungen: Ending')
51 finally:
52 actuator_server.shutdown()
53
54def create_sensor_server(sensor):
55 logging.info('Creating voltmeter server')

Callers

nothing calls this directly

Calls 3

NamespaceClass · 0.85
serve_foreverMethod · 0.80
shutdownMethod · 0.80

Tested by

no test coverage detected