@@ -131,7 +131,13 @@ async def run_server():
131131
132132 # Tls:
133133 # await StartTlsServer(context, identity=identity, address=("localhost", 8020),
134- # certfile="server.crt", keyfile="server.key",
134+ # certfile="server.crt", keyfile="server.key", password="pwd",
135+ # allow_reuse_address=True, allow_reuse_port=True,
136+ # defer_start=False)
137+
138+ # Tls and force require client's certificate for TLS full handshake:
139+ # await StartTlsServer(context, identity=identity, address=("localhost", 8020),
140+ # certfile="server.crt", keyfile="server.key", password="pwd", reqclicert=True,
135141 # allow_reuse_address=True, allow_reuse_port=True,
136142 # defer_start=False)
137143
@@ -141,17 +147,16 @@ async def run_server():
141147 # #
142148 # await server.serve_forever()
143149
144- # !!! SERIAL SERVER NOT IMPLEMENTED !!!
145150 # Ascii:
146- # StartSerialServer(context, identity=identity,
147- # port='/dev/ttyp0', timeout=1)
151+ # await StartSerialServer(context, identity=identity,
152+ # port='/dev/ttyp0', timeout=1, autoreconnect=True )
148153
149154 # RTU:
150- # StartSerialServer(context, framer=ModbusRtuFramer, identity=identity,
151- # port='/dev/ttyp0', timeout=.005, baudrate=9600)
155+ # await StartSerialServer(context, framer=ModbusRtuFramer, identity=identity,
156+ # port='/dev/ttyp0', timeout=.005, baudrate=9600, autoreconnect=True )
152157
153158 # Binary
154- # StartSerialServer(context,
159+ # await StartSerialServer(context,
155160 # identity=identity,
156161 # framer=ModbusBinaryFramer,
157162 # port='/dev/ttyp0',
0 commit comments