Skip to content

ESP32 WifiClientSecure #2646

@LazarBozic94

Description

@LazarBozic94

I'm trying to connect to a mqtt broker with a ca.crt, using PubSubClient and WifiClientSecure, but i always get the -2(connect failed) error code. I've seen people having the same issue, but haven't found a proper working solution.
The connection request doesn't get through to the broker.
When I try the unsecured 1883 port with WifiClient, everything works just fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: StaleIssue is stale stage (outdated/stuck)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions