Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MQTT_CLIENT: MQTT connect failed (MEGH-4406) #248

Closed
3 tasks done
Ph-tech06 opened this issue Mar 4, 2023 · 13 comments
Closed
3 tasks done

MQTT_CLIENT: MQTT connect failed (MEGH-4406) #248

Ph-tech06 opened this issue Mar 4, 2023 · 13 comments

Comments

@Ph-tech06
Copy link

Answers checklist.

  • I have read the Rainmaker documentation and the issue is not addressed there.
  • I have updated my IDF branch (release/vX.Y) to the latest version and checked that the issue is present there. This is not applicable if you are using Rainmaker with Arduino.
  • I have searched the Rainmaker forum and issue tracker for a similar issue and not found a similar issue.

General issue report

Failed to read from DHT sensor!
E (25417) MQTT_CLIENT: mqtt_message_receive: transport_read() error: errno=119
E (25417) esp_mqtt_glue: MQTT_EVENT_ERROR
E (25417) MQTT_CLIENT: esp_mqtt_connect: mqtt_message_receive() returned -1
E (25423) MQTT_CLIENT: MQTT connect failed
04 03 2023_12 53 12_REC
04 03 2023_12 53 12_REC

@github-actions github-actions bot changed the title MQTT_CLIENT: MQTT connect failed MQTT_CLIENT: MQTT connect failed (MEGH-4406) Mar 4, 2023
@Ph-tech06
Copy link
Author

When i upload code its work perfectly but after some days ( like 3-4 days) ... show many error ..

  1. wifi is connected with esp32 but on rainmaker its show "offline"
  2. esp32 connect with my router perfectly because my esp32 mac address show in my router page that show on ARP list but esp32 now working with alexa , google assitant.
    3.if i re-upload the code then again work perfectly but after some days same error show again -------

E (25417) MQTT_CLIENT: mqtt_message_receive: transport_read() error: errno=119
E (25417) esp_mqtt_glue: MQTT_EVENT_ERROR
E (25417) MQTT_CLIENT: esp_mqtt_connect: mqtt_message_receive() returned -1
E (25423) MQTT_CLIENT: MQTT connect failed

@sanketwadekar
Copy link
Contributor

@Ph-tech06 Please refer to the Rainmaker Fair Usage policy here. Make sure your device is not sending too many messages to the cloud.
PS: Please use the "Runtime Bug report" form for creating issues that are related to crashes/errors as it helps us understand the issue much better.

@Ph-tech06
Copy link
Author

Ph-tech06 commented Mar 4, 2023 via email

@sanketwadekar
Copy link
Contributor

Your esp32 device uses MQTT to communicate with the Rainmaker cloud. If you are constantly updating Rainmaker device parameters and reporting it to the cloud using updateAndReport() API, you will exhaust the MQTT limit and the node will get blocked.

@techiesms
Copy link

I think it's the issue of MQTT Budgeting. Well watch this video and you'll find it's solution in the same
https://youtu.be/pNJBaWZ_vj0

@shukur-alom
Copy link

when my wifi disconnect to esp32 esp rainmaker app goes offline it's ok. but when wifi turn on, esp32 never connect to wifi automatically and rainmaker app always show offline.
but when i press esp32 EN button it connect wifi prefectly and esp32 come to online. How to fix it?

@shahpiyushv
Copy link
Collaborator

@shukur-alom , can you try the solution provided here on the forums?

@shukur-alom
Copy link

@shahpiyushv
when i switch esp32 2.0.0 to 2.0.6 it's working now.

@rajsimiot
Copy link

I am facing the same issue . Even if I send data once per minute. Basically around 2000 messages in a day while the document says it gets blocked if we send 25000 msgs in a day

@Ph-tech06
Copy link
Author

I am facing the same issue . Even if I send data once per minute. Basically around 2000 messages in a day while the document says it gets blocked if we send 25000 msgs in a day

mail me - pritam.alexa@gmail.com
share the code & Related Error

@GauravXs
Copy link

is the error solved?? I am facing the same error

@djorr5
Copy link

djorr5 commented Oct 17, 2024

Same issue here. I emailed you @Ph-tech06 . Screen shot of the error that occurs at random times:

image

@shahpiyushv
Copy link
Collaborator

If MQTT disconnects and then reconnects at some later point of time, it is generally due to network issues (Internet and/or Wi-Fi) which may cause the MQTT keep alive packets to get missed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants