Closed T1j3ff closed 2 years ago
@JFPayeur, same as in Serial.println(Longitude,6);
, you can specify a custom precision in Point::addField
. The default is, as you can see in your log, 2 fractional digits:
void addField(const String &name, float value, int decimalPlaces = 2);
void addField(const String &name, double value, int decimalPlaces = 2);
https://github.com/tobiasschuerg/InfluxDB-Client-for-Arduino/blob/master/src/Point.h#L50
Please forgive me if the solution is obvious , I'm a bit new to InfluxDB and Grafana
I'm trying to send Double variable to InfuxDB 2.0 . (8bytes precision) But both the printed back variable on the console, and the data receive in InfluxDB seems to be of normal 4bytes float precision.
Using ESP32 Arduino Suite 1.8.19 InfluxDB 2.0
Serial