Page 1 of 1

Connect ESP32 to PostgreSQL database.

Posted: Sat Dec 19, 2020 2:49 pm
by Talesduque
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

Re: Connect ESP32 to PostgreSQL database.

Posted: Sat Dec 19, 2020 10:58 pm
by dastoned
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.