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

esp32begin
Posts: 2
Joined: Sat Sep 18, 2021 9:30 am

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

Postby esp32begin » Sat Sep 18, 2021 10:47 am

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

esp32begin
Posts: 2
Joined: Sat Sep 18, 2021 9:30 am

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

Postby esp32begin » Mon Sep 20, 2021 4:31 pm

Hi,

I solved it, I was entering the broker address wrong

Lalo_mohedano
Posts: 1
Joined: Wed Jun 22, 2022 4:46 am

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

Postby Lalo_mohedano » Wed Jun 22, 2022 4:50 am

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
};

noweare
Posts: 79
Joined: Tue Jul 02, 2019 11:35 am

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

Postby noweare » Fri Sep 09, 2022 2:18 pm

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

Who is online

Users browsing this forum: No registered users and 13 guests