verbessert
This commit is contained in:
@@ -116,6 +116,9 @@ $data = [
|
||||
//"G_SK_5M_3" => $this->GetValue("G_SK_5M_3"),
|
||||
//"G_SK_5M_4" => $this->GetValue("G_SK_5M_4"),
|
||||
"E_PNB_5M_0" => $netzbezug
|
||||
],
|
||||
"Tags" => [
|
||||
"id" => "test"
|
||||
]
|
||||
];
|
||||
|
||||
@@ -154,25 +157,23 @@ return $json;
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
$options = [
|
||||
'http' => [
|
||||
'header' => "Content-Type: application/json\r\n".
|
||||
"daten: " . $json . "\r\n".
|
||||
"id: test\r\n",
|
||||
'method' => 'POST',
|
||||
|
||||
],
|
||||
];
|
||||
*/
|
||||
$options = [
|
||||
|
||||
$options = [
|
||||
'http' => [
|
||||
'header' => "Content-Type: application/json\r\n",
|
||||
'method' => 'POST',
|
||||
'content' => $json
|
||||
],
|
||||
];
|
||||
|
||||
/* $options = [
|
||||
'http' => [
|
||||
'header' => "daten: " . $json . "\r\n".
|
||||
"id: test\r\n",
|
||||
'method' => 'POST',
|
||||
|
||||
],
|
||||
];
|
||||
];*/
|
||||
IPS_LogMessage("Belevo_Server_Kommunikation", "Options: " . print_r($options, true));
|
||||
$context = stream_context_create($options);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user