summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
339f65a)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
# an interval of 10 seconds, and an accepted status.
return ocpp.v201.call_result.BootNotification(
current_time=datetime.now(timezone.utc).isoformat(),
# an interval of 10 seconds, and an accepted status.
return ocpp.v201.call_result.BootNotification(
current_time=datetime.now(timezone.utc).isoformat(),
status=RegistrationStatusType.accepted
)
status=RegistrationStatusType.accepted
)
+ @on(Action.Heartbeat)
+ async def on_heartbeat(self, charging_station, **kwargs):
+ logging.info("Received Heartbeat")
+ return ocpp.v201.call_result.Heartbeat(current_time=datetime.now(timezone.utc).isoformat())
+
# Request handlers to emit OCPP messages.
async def send_clear_cache(self):
request = ocpp.v201.call.ClearCache()
# Request handlers to emit OCPP messages.
async def send_clear_cache(self):
request = ocpp.v201.call.ClearCache()