Should client.verify pass or fail in TlsTcpClient?

Hi All,

Just wondering if anyone is using the TlsTcpClient library?

I got it working well but I just have a question about “client.verify”.

Is client.verify supposed to pass or fail here?

// check server certificate. if verify failed, TLS connection is alive.
if (!client.verify()) {
  Serial.println("Server Certificates is in-valid.");

When I use the library I get the error message : “Server Certificates is in-valid.” but the data is logged in my DB just fine.