#!/usr/bin/env python3
"""
Voltie OCPP UDP Client Launcher

This script allows the client to run independently from the client/ folder.
"""

if __name__ == "__main__":
    from client.server import main
    import asyncio
    import sys
    
    try:
        asyncio.run(main())
    except KeyboardInterrupt:
        print("\nGraceful shutdown complete.")
        sys.exit(0)
    except Exception as e:
        print(f"Client failed: {e}")
        sys.exit(1)
