no message
This commit is contained in:
@@ -346,7 +346,7 @@ class Ladestation_v2 extends IPSModule
|
||||
|
||||
$response = curl_exec($ch);
|
||||
curl_close($ch);
|
||||
$ch = curl_init();
|
||||
$ch2 = curl_init();
|
||||
|
||||
$url2 = "https://api.easee.com/api/chargers/".$this->ReadPropertyString("Seriennummer")."/state";
|
||||
curl_setopt_array($ch, [
|
||||
@@ -361,10 +361,10 @@ class Ladestation_v2 extends IPSModule
|
||||
],
|
||||
]);
|
||||
|
||||
curl_setopt($ch, CURLOPT_URL, $url2);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
$response_easee = curl_exec($ch);
|
||||
curl_close($ch);
|
||||
curl_setopt($ch2, CURLOPT_URL, $url2);
|
||||
curl_setopt($ch2, CURLOPT_RETURNTRANSFER, true);
|
||||
$response_easee = curl_exec($ch2);
|
||||
curl_close($ch2);
|
||||
|
||||
if ($response === false || $response_easee === false) {
|
||||
IPS_LogMessage("Ladestation", "Fehler beim Abrufen der API-Daten");
|
||||
|
||||
Reference in New Issue
Block a user