Influxdb2 hosting on a Raspberry 3B+

Hi everyone,

I am a beginner into database and influxdb2. I try to connect my ESP32 to influxdb2 which is hosting on a Raspberry 3B+ (from 2017).

The error I face is always the same: "Influx DB connection failed : connection refused

I have trouble to synchronize the time. The date is always wrong. Maybe it can be a reason. I am located in Manila, Philippines.

Here is the code I upload in the ESP32 in order to access influxdb2:

Do you have a clue of what is going wrong?
Thank you in advance :wink:

Here is the code. I am not allowed to attach a document as a new user :wink:
WETRANSFER