瀏覽代碼

Merge branch 'correct-influxdbv1-bug' into rolling

jomjol 3 年之前
父節點
當前提交
6ff83445ac
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      code/components/jomjol_influxdb/interface_influxdb.cpp

+ 1 - 1
code/components/jomjol_influxdb/interface_influxdb.cpp

@@ -189,7 +189,7 @@ void InfluxDBPublish(std::string _key, std::string _content, std::string _timest
 
 
 
 
     // use the default retention policy of the database
     // use the default retention policy of the database
-    std::string apiURI = _influxDBURI + "/api/v2/write?bucket=" + _influxDBDatabase + "/";
+    std::string apiURI = _influxDBURI + "/write?db=" + _influxDBDatabase + "/";
     apiURI.shrink_to_fit();
     apiURI.shrink_to_fit();
     http_config.url = apiURI.c_str();
     http_config.url = apiURI.c_str();