Neues Ladestationsmodul mit ocpp Modul erstellt.

This commit is contained in:
2026-05-10 10:56:34 +02:00
parent 51b27d568a
commit bba6494c59
27 changed files with 3290 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
<?php
class OCPP16Adapter
{
public function normalizeInbound(OCPPMessage $message): array
{
return [
'version' => '1.6',
'action' => $message->action,
'uniqueId' => $message->uniqueId,
'payload' => $message->payload
];
}
public function buildSetChargingProfile(array $profile): OCPPMessage
{
return OCPPMessage::call('SetChargingProfile', $profile, '1.6');
}
public function buildClearChargingProfile(int $connectorId): OCPPMessage
{
return OCPPMessage::call('ClearChargingProfile', ['connectorId' => $connectorId], '1.6');
}
public function buildReset(string $type = 'Soft'): OCPPMessage
{
return OCPPMessage::call('Reset', ['type' => $type], '1.6');
}
}
?>