def StartSerialServer(context=None, identity=None, **kwargs):
 framer = kwargs.pop('framer', ModbusAsciiFramer)
 server = ModbusSerialServer(context, framer, identity, **kwargs)
 server.serve_forever()

def StartSerialServer ( context = None , identity = None , ** kwargs ) : framer = kwargs . pop ( 'framer' , ModbusAsciiFramer ) server = ModbusSerialServer ( context , framer , identity , ** kwargs ) server . serve_forever ( )
helper method to start the modbus async serial server .