Skip to content

Commit 2725c3b

Browse files
authored
Merge pull request #161 from pabloariasmora/main
fix(dependencies): update requirements and OCPP compatibility
2 parents 93d94f2 + 56e6672 commit 2725c3b

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
ocpp
2-
websockets
1+
ocpp==2.0.0
2+
websockets==13.0

ev-charge-point-simulator/simulate.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@
55

66
from ocpp.v201 import call
77
from ocpp.v201 import ChargePoint as cp
8-
from ocpp.v201.enums import RegistrationStatusType
9-
8+
from ocpp.v201.enums import RegistrationStatusEnumType as RegistrationStatusType
109

1110
logging.basicConfig(level=logging.INFO)
1211

1312

1413
class ChargePointSimlator(cp):
1514
async def send_boot_notification(self):
16-
request = call.BootNotificationPayload(
15+
request = call.BootNotification(
1716
charging_station={
1817
"serial_number": arguments["cp_serial"],
1918
"model": arguments["cp_model"],
@@ -43,7 +42,7 @@ async def send_commands(self, arguments):
4342

4443
async def send_heartbeats(self, arguments):
4544
while True:
46-
request = call.HeartbeatPayload()
45+
request = call.Heartbeat()
4746
await self.call(request)
4847
await asyncio.sleep(arguments["heartbeat_interval"])
4948

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
boto3
2-
websockets
1+
boto3==1.37.3
2+
websockets==13.0
33
paho-mqtt==1.6.1
4-
asyncio-mqtt
4+
asyncio-mqtt==0.16.2

0 commit comments

Comments
 (0)