diff options
Diffstat (limited to 'write-influx')
-rw-r--r-- | write-influx/write_influx.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/write-influx/write_influx.py b/write-influx/write_influx.py index 3313203..78e4da5 100644 --- a/write-influx/write_influx.py +++ b/write-influx/write_influx.py @@ -75,7 +75,7 @@ def write_point(measurement, tags, fields): json["tags"] = tags json["fields"] = fields try: - influx_client.write_points([json], retention_policy="two-years") + influx_client.write_points([json]) except Exception as e: print(e) print(json) @@ -86,7 +86,7 @@ client = mqtt.Client() client.on_connect = on_connect client.on_message = on_message -client.connect("mqtt", 1883, 60) +client.connect("broker", 1883, 60) # Blocking call that processes network traffic, dispatches callbacks and # handles reconnecting. |