verbessert

This commit is contained in:
belevo\mh
2024-11-04 10:36:05 +01:00
parent fd8e600633
commit cd1f1ca6de
2 changed files with 15 additions and 14 deletions

View File

@@ -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);

View File

@@ -6,7 +6,7 @@
"compatibility": {
"version": "7.1"
},
"version": "0.53",
"version": "0.54",
"build": 0,
"date": 0
}