if response.status == ReportBaseType.accepted:
logging.info("%s successful", Action.GetBaseReport)
else:
- logging.info("%s filed", Action.GetBaseReport)
+ logging.info("%s failed", Action.GetBaseReport)
# Function to send OCPP command
logging.info("%s Send:", Action.GetBaseReport)
await cp.send_get_base_report()
except Exception:
- logging.exception(f"Not supported or Failure while processing command {command_name}")
+ logging.exception(
+ f"Not supported or Failure while processing command {command_name}"
+ )
if delay:
await asyncio.sleep(delay)
)
logging.info("WebSocket Server Started")
- args = parser.parse_args()
-
- if args.command:
- for cp in ChargePoints:
- asyncio.create_task(
- send_ocpp_command(cp, args.command, args.delay, args.period)
- )
-
# Wait for the server to close (runs indefinitely).
await server.wait_closed()