In my python script I am doing bluetooth and RF communication on individual 
threads respectively. I want to add Rest Web Method in same script using Bottle 
web framework.

If I add below code, in existing python script, it wont work. How to make it 
work in existing script.

from bottle import Bottle, run

app = Bottle()

@app.route('/hello')
def hello():
    return "Hello World!"

run(app, host='localhost', port=8080, debug = True)
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to