kleine syntaxfehler gefunden
This commit is contained in:
@@ -182,7 +182,7 @@ class Ladestation_Universal extends IPSModule
|
||||
"https://api.smart-me.com/pico/charging/". $this->ReadPropertyInteger("ID");
|
||||
);
|
||||
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
|
||||
curl_setopt($ch, CURLOPT_USERPWD, $this->ReadPropertyInteger("Username") . ":" . $$this->ReadPropertyInteger("Password"));
|
||||
curl_setopt($ch, CURLOPT_USERPWD, $this->ReadPropertyInteger("Username") . ":" . $this->ReadPropertyInteger("Password"));
|
||||
}
|
||||
|
||||
|
||||
@@ -322,7 +322,7 @@ class Ladestation_Universal extends IPSModule
|
||||
curl_setopt($ch, CURLOPT_URL, $url);
|
||||
|
||||
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
|
||||
curl_setopt($ch, CURLOPT_USERPWD, $this->ReadPropertyInteger("Username") . ":" . $$this->ReadPropertyInteger("Password"));
|
||||
curl_setopt($ch, CURLOPT_USERPWD, $this->ReadPropertyInteger("Username") . ":" . $this->ReadPropertyInteger("Password"));
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
$response = curl_exec($ch);
|
||||
curl_close($ch);
|
||||
@@ -394,7 +394,7 @@ class Ladestation_Universal extends IPSModule
|
||||
$url2 = $baseUrl . $value*1000;
|
||||
curl_setopt($ch, CURLOPT_URL, $url2);
|
||||
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
|
||||
curl_setopt($ch, CURLOPT_USERPWD, $this->ReadPropertyInteger("Username") . ":" . $$this->ReadPropertyInteger("Password"));
|
||||
curl_setopt($ch, CURLOPT_USERPWD, $this->ReadPropertyInteger("Username") . ":" . $this->ReadPropertyInteger("Password"));
|
||||
$response2 = curl_exec($ch);
|
||||
|
||||
// Check for errors
|
||||
|
||||
Reference in New Issue
Block a user