Page 1 of 1

Problem with "example /protocols/mqtt/tcp" - ESP-WROOM-32

Posted: Sat Sep 18, 2021 10:47 am
by esp32begin
Hi,

I have got a problem with the code of the example mqtt/tcp --- espressif /
esp-idf

"https://github.com/espressif/esp-idf/t ... /mqtt/tcp",

the message is:

E (941400) TRANS_TCP: [sock=54] select() timeout
E (941400) MQTT_CLIENT: Error transport connect

I upload the same code....what's the problem?... I know that I'm doing bad. My ESP is ESP-WROOM-32...

Could anyone help me?

Thanks a lot

Re: Problem with "example /protocols/mqtt/tcp" - ESP-WROOM-32

Posted: Mon Sep 20, 2021 4:31 pm
by esp32begin
Hi,

I solved it, I was entering the broker address wrong

Re: Problem with "example /protocols/mqtt/tcp" - ESP-WROOM-32

Posted: Wed Jun 22, 2022 4:50 am
by Lalo_mohedano
how did you enter the URI?

I am having the same issue, I am trying to connect to a local mosquitto broker connected on the same wifi network. I am doing this

esp_mqtt_client_config_t mqtt_cfg = {
.uri = "mqtt://10.0.2.15:1883",
//.port = 1883
};

Re: Problem with "example /protocols/mqtt/tcp" - ESP-WROOM-32

Posted: Fri Sep 09, 2022 2:18 pm
by noweare
What is the error msg you recieve.
If you have any type of security you need to pass that to the broker i.e. username and password