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

Connection refused to InfluxDB #187

Closed thewackyseal closed 2 years ago

thewackyseal commented 2 years ago

Hi, I'm unable to connect to InfluxDB from my esp32 board and not sure what to do as I am new to this. Please advise, thank you.

This is the error log: image

vlastahajek commented 2 years ago

@thewackyseal, thanks for the log. The log shows that you have set the host as localhost. Localhost means the same device. You need to provide the name or IP of the computer running the InfluxDB server, or the URL for InfluxDB Cloud if it is the case.

thewackyseal commented 2 years ago

Thank you, it connects now, however I'm facing this new issue:

image

vlastahajek commented 2 years ago

What is the issue with your app? Did the client report an error? The above log message doesn't mean there is sth wrong.

thewackyseal commented 2 years ago

I managed to get it working, thank you for the help!