Insert or Write point to InfluxDBv2 completely serverless via Thingsup IoT Platform. Insert data in InfluxDBv2 with simple MQTT rules engine or HTTP APIs.
This provides a way to provide write point to InfluxDBv2. Before adding InfluxDBv2 Write Point Action, user has to define a InfluxDBv2 Connection. User need to provide following parameters to add InfluxDBv2 Write Point Action.
User need to provide name of InfluxDB measurement.
"payload" object, tags, fields and timestamp objects are available in this code which are directly written on InfluxDBv2 Connection.
tags["device"] = payload.devicename;
fields["temperature"] = payload.temperature;
timestamp = null; // Take server Time
User need to provide bucket name of InfluxDB database.
User need to provide Org name of InfluxDB database.
User need to provide a Connection ID of InfluxDBv2 database connection.
Add InfluxDBv2 Write Point Action
Please note the following points:
"payload" object is supplied from Action Trigger like Rules, Action Command etc.
Data Response of InfluxDB query will be available as Action Response.