verbessert
This commit is contained in:
@@ -116,6 +116,9 @@ $data = [
|
|||||||
//"G_SK_5M_3" => $this->GetValue("G_SK_5M_3"),
|
//"G_SK_5M_3" => $this->GetValue("G_SK_5M_3"),
|
||||||
//"G_SK_5M_4" => $this->GetValue("G_SK_5M_4"),
|
//"G_SK_5M_4" => $this->GetValue("G_SK_5M_4"),
|
||||||
"E_PNB_5M_0" => $netzbezug
|
"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 = [
|
||||||
];
|
'http' => [
|
||||||
*/
|
'header' => "Content-Type: application/json\r\n",
|
||||||
$options = [
|
'method' => 'POST',
|
||||||
|
'content' => $json
|
||||||
|
],
|
||||||
|
];
|
||||||
|
|
||||||
|
/* $options = [
|
||||||
'http' => [
|
'http' => [
|
||||||
'header' => "daten: " . $json . "\r\n".
|
'header' => "daten: " . $json . "\r\n".
|
||||||
"id: test\r\n",
|
"id: test\r\n",
|
||||||
'method' => 'POST',
|
'method' => 'POST',
|
||||||
|
|
||||||
],
|
],
|
||||||
];
|
];*/
|
||||||
IPS_LogMessage("Belevo_Server_Kommunikation", "Options: " . print_r($options, true));
|
IPS_LogMessage("Belevo_Server_Kommunikation", "Options: " . print_r($options, true));
|
||||||
$context = stream_context_create($options);
|
$context = stream_context_create($options);
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"compatibility": {
|
"compatibility": {
|
||||||
"version": "7.1"
|
"version": "7.1"
|
||||||
},
|
},
|
||||||
"version": "0.53",
|
"version": "0.54",
|
||||||
"build": 0,
|
"build": 0,
|
||||||
"date": 0
|
"date": 0
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user