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
+29
View File
@@ -0,0 +1,29 @@
<?php
class WebSocketEndpoint
{
public static function supportSummary(bool $registerHookAvailable, string $hookPath): array
{
if ($registerHookAvailable) {
return [
'status' => 'Hook vorbereitet',
'detail' => 'Symcon RegisterHook ist verfuegbar. WebSocket-Dauerbetrieb muss mit echter OCPP-Station verifiziert werden.',
'hookPath' => $hookPath
];
}
return [
'status' => 'Hook manuell/spaeter',
'detail' => 'RegisterHook ist in dieser Symcon-Umgebung nicht als Modul-Methode verfuegbar. WebHook Control muss manuell oder nach Upgrade verbunden werden.',
'hookPath' => $hookPath
];
}
public static function readRawBody(): string
{
$data = @file_get_contents('php://input');
return is_string($data) ? $data : '';
}
}
?>