Skip to content

Simple CherryPy Server #54

@AndrewKe

Description

@AndrewKe

I can't seem to get a simple CherryPy Server working with DroneKit. The code below works fine when I execute it out of mavproxy using python drone.py but when I enter mavproxy and execute it using api start drone.py , none of the CherryPy debug messages appear and I just get "STABILIZE> APIThread-0 exiting..."

#drone.py

import cherrypy

class HelloWorld(object):
    @cherrypy.expose
    def index(self):
        return "Hello world!"

if __name__ == '__main__':
   cherrypy.quickstart(HelloWorld())

I'm trying this on a RaspberryPi2 and the 'drone delivery" demo which also uses CherryPy works on it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions