weitere syntaxfehler ...

This commit is contained in:
belevo\mh
2024-11-05 11:09:33 +01:00
parent b5b9d6c1a1
commit c8046d6186
2 changed files with 4 additions and 4 deletions

View File

@@ -117,7 +117,7 @@ $influxData = array(
); );
// Array in JSON konvertieren // Array in JSON konvertieren
$json = json_encode($data); $json = json_encode($influxData);
// JSON zurückgeben oder weiterverarbeiten // JSON zurückgeben oder weiterverarbeiten
return $json; return $json;
@@ -136,8 +136,8 @@ private function SendJsonToInfluxDB($url, $jsonData) {
CURLOPT_POST => true, // POST-Methode verwenden CURLOPT_POST => true, // POST-Methode verwenden
CURLOPT_HTTPHEADER => [ CURLOPT_HTTPHEADER => [
'Content-Type: application/json', // Header für JSON-Daten setzen 'Content-Type: application/json', // Header für JSON-Daten setzen
'Accept: application/json' 'Accept: application/json',
'id : test' 'id: test'
], ],
CURLOPT_POSTFIELDS => $jsonData // JSON-Daten als POST-Feld senden CURLOPT_POSTFIELDS => $jsonData // JSON-Daten als POST-Feld senden
]); ]);

View File

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