Page 1 of 1

ESP Rain MAker

Posted: Thu Feb 23, 2023 10:43 am
by firdoshnd
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??

Re: ESP Rain MAker

Posted: Fri Feb 24, 2023 4:45 am
by ESP_Piyush
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?

Re: ESP Rain MAker

Posted: Fri Feb 24, 2023 5:51 am
by ESP_Piyush
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?

Re: ESP Rain MAker

Posted: Fri Feb 24, 2023 7:21 am
by firdoshnd
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.

Re: ESP Rain MAker

Posted: Fri Mar 03, 2023 3:05 pm
by firdoshnd
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

Re: ESP Rain MAker

Posted: Sat Mar 04, 2023 4:33 am
by ESP_Piyush
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.

Re: ESP Rain MAker

Posted: Sat Mar 04, 2023 6:48 am
by firdoshnd
Thank you will remove temperature code and see what happens

Re: ESP Rain MAker

Posted: Sat Mar 04, 2023 6:51 am
by ESP_Piyush
The same certificate won't work anymore. You will have to go through claiming process once again (by erasing the flash) and then retry.

Re: ESP Rain MAker

Posted: Sun Mar 05, 2023 1:30 pm
by firdoshnd
Thank you for your valuable point will do so.