import asyncio import websockets from datetime import datetime
from ocpp.routing import on from ocpp.v16 import ChargePoint as cp from ocpp.v16.enums import Action, RegistrationStatus from ocpp.v16 import call_result, call
china unknow connection handler failed Traceback (most recent call last): File "C:\Users\R\AppData\Local\Programs\Python\Python37\lib\site-packages\websockets\legacy\server.py", line 232, in handler await self.ws_handler(self) File "C:\Users\R\AppData\Local\Programs\Python\Python37\lib\site-packages\websockets\legacy\server.py", line 1149, in _ws_handler )(websocket, websocket.path) File "c:\Users\R\Desktop\充电桩\ocpp-test\server.py", line 94, in on_connect await cp.start() File "C:\Users\R\AppData\Local\Programs\Python\Python37\lib\site-packages\ocpp\charge_point.py", line 128, in start message = await self._connection.recv() File "C:\Users\R\AppData\Local\Programs\Python\Python37\lib\site-packages\websockets\legacy\protocol.py", line 553, in recv await self.ensure_open() File "C:\Users\R\AppData\Local\Programs\Python\Python37\lib\site-packages\websockets\legacy\protocol.py", line 930, in ensure_open raise self.connection_closed_exc() websockets.exceptions.ConnectionClosedOK: received 1000 (OK); then sent 1000 (OK)