Page 1 of 1

MQTT example not working

Posted: Thu Oct 06, 2022 1:32 pm
by Ceranthor
Hi i am trying to use mqtt example from esp-mdf -> functioning_demo -> mwifi and its not working I spend hours trying to check if everything is ok i put my router ssid and password everything is connected to the internet by I still get errors
Kconfig

Code: Select all

config MQTT_URL
    string "MQTT broker URL"
    default "mqtt://iot.eclipse.org"
    help
        URL of the broker to connect to
Error

Code: Select all

E (14721) esp-tls: [sock=54] select() timeout
E (14722) TRANSPORT_BASE: Failed to open a new connection: 32774
E (14722) MQTT_CLIENT: Error transport connect
What can I do next?

Re: MQTT example not working

Posted: Mon Oct 10, 2022 8:54 am
by ESP_YJM
You may need change a Broker URL, it seems `mqtt://iot.eclipse.org` is unavailable.