ESP Rain MAker

firdoshnd
Posts: 6
Joined: Tue Feb 21, 2023 6:39 am

ESP Rain MAker

Postby firdoshnd » Thu Feb 23, 2023 10:43 am

I have made a project using ESP32 controlling 5 relays with esp rainmaker app on my android phone which has 5 on/off switch widgets. It works perfectly for 2 days than it shows off line on my app and no re-booting etc brings it back on.... I than have to re-load code to esp32 and start the process all over again before it works again for about 2 days than goes off line again. Can some one please tell me what the issue is? My 3 channel switch version has been working for 3 months now without any problems. Is it because I have the free version of the app??

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

Re: ESP Rain MAker

Postby ESP_Piyush » Fri Feb 24, 2023 4:45 am

The quota on public RainMaker comes into picture only during claiming. Since your device is already onboarded, the quota limit is ruled out. Are you using Arduino or esp-idf? Do you have any console logs indicating what error you are getting?

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

Re: ESP Rain MAker

Postby ESP_Piyush » Fri Feb 24, 2023 5:51 am

One other information I missed here is, if a node is consistently sending more than 25K MQTT messages in a day, it may get deactivated as our device defender logic kicks in. Such checks are in place even in the private commercial deployments to protect against misbehaving devices. Can you check if your code may be causing such high number of messages?

firdoshnd
Posts: 6
Joined: Tue Feb 21, 2023 6:39 am

Re: ESP Rain MAker

Postby firdoshnd » Fri Feb 24, 2023 7:21 am

Hi Piyush,
Thank you for your valuable questions I will get back to you once I check on the errors. I am using Arduino IDE on my esp32.

firdoshnd
Posts: 6
Joined: Tue Feb 21, 2023 6:39 am

Re: ESP Rain MAker

Postby firdoshnd » Fri Mar 03, 2023 3:05 pm

Hi attached is the error message I am getting on the serial monitor am using Arduino IDE

E (1382844) MQTT_CLIENT: mqtt_message_receive: transport_read() error: error=119
E (1382844) esp_mqtt_glue: MQTT_EVENT_ERROR
E (1382844) MQTT_CLIENT: esp_mqtt_connect: mqtt_message_receive() returned -1
E (1382851) MQTT_CLIENT: MQTT connect failed.
I also read temperature an Humidity in my code which send this to the widget on the rainmaker app, could this be what is sending to many mqtt messages?

I re-loaded code to my esp32 and everything works 100% for about a week than all of a sudden the app shows my switches are off line and rebooting does not help. I have tried it with a new esp32 Devkit 1 and still the same.
Am new to this so have no clue what the problem could be.

Thanking you Firdosh

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

Re: ESP Rain MAker

Postby ESP_Piyush » Sat Mar 04, 2023 4:33 am

Just check what's your frequency of updating the temperature and humidity params. If both of them together result in more than 25K updates per day, your node may get de-activated.

firdoshnd
Posts: 6
Joined: Tue Feb 21, 2023 6:39 am

Re: ESP Rain MAker

Postby firdoshnd » Sat Mar 04, 2023 6:48 am

Thank you will remove temperature code and see what happens

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

Re: ESP Rain MAker

Postby ESP_Piyush » Sat Mar 04, 2023 6:51 am

The same certificate won't work anymore. You will have to go through claiming process once again (by erasing the flash) and then retry.

firdoshnd
Posts: 6
Joined: Tue Feb 21, 2023 6:39 am

Re: ESP Rain MAker

Postby firdoshnd » Sun Mar 05, 2023 1:30 pm

Thank you for your valuable point will do so.

Who is online

Users browsing this forum: No registered users and 8 guests