def RunModbusFrontend(server, port=8080):
 from bottle import TwistedServer, run
 application = build_application(server)
 run(app=application, server=TwistedServer, port=port)

def RunModbusFrontend ( server , port = 8080 ) : from bottle import TwistedServer , run application = build_application ( server ) run ( app = application , server = TwistedServer , port = port )
helper method to host bottle in twisted .