def StartUdpServer(context, identity=None, address=None, **kwargs):
 from twisted.internet import reactor
 address = (address or ('', Defaults.Port))
 framer = ModbusSocketFramer
 server = ModbusUdpProtocol(context, framer, identity, **kwargs)
 _logger.info(('Starting Modbus UDP Server on %s:%s' % address))
 reactor.listenUDP(address[1], server, interface=address[0])
 reactor.run()

def StartUdpServer ( context , identity = None , address = None , ** kwargs ) : from twisted . internet import reactor address = ( address or ( '' , Defaults . Port ) ) framer = ModbusSocketFramer server = ModbusUdpProtocol ( context , framer , identity , ** kwargs ) _logger . info ( ( 'Starting Modbus UDP Server on %s:%s' % address ) ) reactor . listenUDP ( address [ 1 ] , server , interface = address [ 0 ] ) reactor . run ( )
helper method to start the modbus async udp server .