Merge branch 'main' into issue39-ocpp2
[e-mobility-charging-stations-simulator.git] / tests / ocpp-server / server.py
index eec9471e554ed138033cbd99dd47aa81a977435a..98a9d8530790ccccc7bf333ef7e1445bff9952e6 100644 (file)
@@ -149,12 +149,12 @@ async def send_ocpp_command(cp, command_name, delay=None, period=None):
     if period:
         async def send_command_repeatedly():
             while True:
-                command_name = await charge_point.receive_command()
+                command_name = await cp.receive_command()
                 try:
                     match command_name:
                         case Action.ClearCache:
                             logging.info("ClearCache parser working")
-                            await charge_point.send_clear_cache()
+                            await cp.send_clear_cache()
                         case Action.GetBaseReport:
                             logging.info("GetBaseReport parser working")
                             await cp.send_get_base_report()