From: Sekiya Date: Wed, 26 Jun 2024 07:47:53 +0000 (+0900) Subject: fix: corrected a error X-Git-Tag: v1.3.7~17^2~8 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=d4eddfaee92738e8d33f7cca0acc724b152501d4;p=e-mobility-charging-stations-simulator.git fix: corrected a error --- diff --git a/tests/ocpp-server/server.py b/tests/ocpp-server/server.py index b43f5f36..45a7668f 100644 --- a/tests/ocpp-server/server.py +++ b/tests/ocpp-server/server.py @@ -218,11 +218,11 @@ async def main(): args = parser.parse_args() - on_connect = partial(on_connect, args=args) # Add args to on_connect + on_connect_bound = partial(on_connect, args=args) # Add args to on_connect # Create the WebSocket server and specify the handler for new connections. server = await websockets.serve( - on_connect, + on_connect_bound, "127.0.0.1", # Listen on loopback. 9000, # Port number. subprotocols=["ocpp2.0", "ocpp2.0.1"], # Specify OCPP 2.0.1 subprotocols.