Connect ESP32 to PostgreSQL database.

Talesduque
Posts: 11
Joined: Wed Jul 08, 2020 1:40 pm

Connect ESP32 to PostgreSQL database.

Postby Talesduque » Sat Dec 19, 2020 2:49 pm

Hello everyone,

I'm trying to develop a code to send data to my PostgreSQL database, I've tried implementing the following database https://github.com/ethanak/SimplePgSQL, using Arduino framework as esp-idf component. Although, when I try to connect it, I get this error:

[E][WiFiClient.cpp:266] connect(): socket error on fd 54, errno: 104, "Connection reset by peer"

Anyone know how to resolve this issue or have any other idea on how to do it?

Thanks

dastoned
Posts: 50
Joined: Fri May 29, 2020 2:52 pm

Re: Connect ESP32 to PostgreSQL database.

Postby dastoned » Sat Dec 19, 2020 10:58 pm

Sounds like your PostgreSQL server drops the connection to the client. I'd start by looking at the server's logs, possibly after increasing the logging verbosity.

Who is online

Users browsing this forum: No registered users and 61 guests