ESP Rain MAker
ESP Rain MAker
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??
-
- Posts: 309
- Joined: Wed Feb 20, 2019 7:02 am
Re: ESP Rain MAker
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?
-
- Posts: 309
- Joined: Wed Feb 20, 2019 7:02 am
Re: ESP Rain MAker
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
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.
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
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
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
-
- Posts: 309
- Joined: Wed Feb 20, 2019 7:02 am
Re: ESP Rain MAker
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
Thank you will remove temperature code and see what happens
-
- Posts: 309
- Joined: Wed Feb 20, 2019 7:02 am
Re: ESP Rain MAker
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
Thank you for your valuable point will do so.
Who is online
Users browsing this forum: No registered users and 32 guests