tobiasschuerg / InfluxDB-Client-for-Arduino

Simple library for sending measurements to an InfluxDB with a single network request. Supports ESP8266 and ESP32.
MIT License
382 stars 95 forks source link

WritePoint data loss on index 0 when send in buffer mode. #209

Closed parinyaonline closed 1 year ago

parinyaonline commented 1 year ago
  1. Setting the batchSize for 512 line/point and bufferSize 1024 line/point
  2. Use writeRecord or writePoint to 512 line/point
  3. The device send package to server. code 204
  4. Then I try to export .csv file from server, The data received is line 1-512 total is 511 lines.

Screenshot 2023-02-01 121157

Please help me to check about this and expend why we need to cancel the Point/Line zero?

Specifications:

parinyaonline commented 1 year ago

Hi, I try to print debug mode and the data is that prepare before post to server is completely. It can prepare text for 512 lines before post to server.

Screenshot_20230201_122513

Maybe the bug is not from the InfluxDB library. I will update later.

Thank you.

parinyaonline commented 1 year ago

Hi, I found the issue is coming from the timestamp is the same between index 0 and index 1 and make the server confuse.

Thank you.