Error: MQTT_CLIENT: MQTT connect failed

nirmeshru
Posts: 13
Joined: Sat Jan 30, 2021 7:08 pm

Error: MQTT_CLIENT: MQTT connect failed

Postby nirmeshru » Mon Feb 28, 2022 6:28 am

Hi,
I am trying the switch example on the custom ESP32 board and getting the below error.

E (783471) MQTT_CLIENT: mqtt_message_receive: transport_read() error: errno=119
E (783471) esp_mqtt_glue: MQTT_EVENT_ERROR
E (783471) MQTT_CLIENT: esp_mqtt_connect: mqtt_message_receive() returned -1
E (783481) MQTT_CLIENT: MQTT connect failed
W (783491) esp_mqtt_glue: MQTT Disconnected. Will try reconnecting in a while...


actually, the switch example was working fine some time back but now it is showing this error. I tried this example on some other esp32 board but it is reporting the same issue.
I am using the esp idf 4.4 version.

any idea, how can I approach to resolve this issue?

Thanks,
Nirmesh

ESP_Piyush
Posts: 259
Joined: Wed Feb 20, 2019 7:02 am

Re: Error: MQTT_CLIENT: MQTT connect failed

Postby ESP_Piyush » Mon Feb 28, 2022 7:04 am

Can you tell us whether you used CLI based claiming for this or assisted claiming, or whether you have used both on the same board at different points of time? Are the same credentials mistakenly used elsewhere on an active device?

nirmeshru
Posts: 13
Joined: Sat Jan 30, 2021 7:08 pm

Re: Error: MQTT_CLIENT: MQTT connect failed

Postby nirmeshru » Mon Feb 28, 2022 8:39 am

I was testing Arduino-esp32 example RMakerSwitch.ino on the same ESP32 board and it works.
so after that, whenever I am using esp rainmaker switch example or my own switch code on the same ESP32 board then getting this error message.

nirmeshru
Posts: 13
Joined: Sat Jan 30, 2021 7:08 pm

Re: Error: MQTT_CLIENT: MQTT connect failed

Postby nirmeshru » Mon Feb 28, 2022 11:31 am

i erased flash and uploaded the switch example program. now it is working fine.

Who is online

Users browsing this forum: No registered users and 18 guests