MCPcopy Create free account
hub / github.com/dronekit/dronekit-python / _run_server

Method _run_server

examples/drone_delivery/drone_delivery.py:102–114  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

100 self.vehicle.armed = False
101
102 def _run_server(self):
103 # Start web server if enabled
104 cherrypy.tree.mount(DroneDelivery(self), '/', config=cherrypy_conf)
105
106 cherrypy.config.update({'server.socket_port': 8080,
107 'server.socket_host': '0.0.0.0',
108 'log.screen': None})
109
110 print('''Server is bound on all addresses, port 8080
111You may connect to it using your web broser using a URL looking like this:
112http://localhost:8080/
113''')
114 cherrypy.engine.start()
115
116 def change_mode(self, mode):
117 self._log("Changing to mode: {0}".format(mode))

Callers 1

launchMethod · 0.95

Calls 3

DroneDeliveryClass · 0.85
updateMethod · 0.80
startMethod · 0.80

Tested by

no test coverage detected