Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(dependencies): update requirements and OCPP compatibility #161

Merged
merged 2 commits into from
Feb 28, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ev-charge-point-simulator/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ocpp
websockets
ocpp==2.0.0
websockets==13.0
7 changes: 3 additions & 4 deletions ev-charge-point-simulator/simulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@

from ocpp.v201 import call
from ocpp.v201 import ChargePoint as cp
from ocpp.v201.enums import RegistrationStatusType

from ocpp.v201.enums import RegistrationStatusEnumType as RegistrationStatusType

logging.basicConfig(level=logging.INFO)


class ChargePointSimlator(cp):
async def send_boot_notification(self):
request = call.BootNotificationPayload(
request = call.BootNotification(
charging_station={
"serial_number": arguments["cp_serial"],
"model": arguments["cp_model"],
Expand Down Expand Up @@ -43,7 +42,7 @@ async def send_commands(self, arguments):

async def send_heartbeats(self, arguments):
while True:
request = call.HeartbeatPayload()
request = call.Heartbeat()
await self.call(request)
await asyncio.sleep(arguments["heartbeat_interval"])

Expand Down
4 changes: 2 additions & 2 deletions src/ocpp-gateway-container/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
boto3
websockets
websockets==13.0
paho-mqtt==1.6.1
asyncio-mqtt
asyncio-mqtt