iot_button_cb() not working after few operations / (load switching)
Posted: Sat Jun 25, 2022 12:24 pm
Hi,
We are developing ESP32-Rainmaker based device.
In this device it will have two lamps (relay) and two switch to control lamps.
All functions are working very well if lamp load is not connected to device. If lamp load is connected and switch is operated for 10 to 20 times then switches stops working. In this condition Relays (Lamp load) can be controlled through mobile application [write_cb()]
After debugging it seems that callback function is not getting executed when problem arises. I tried to re-initialise iot_buttons with the help of iot_button_delete(), iot_button_create() and iot_button_set_evt_cb() functions, still it is not working / get recovered.
Please let me know how to resolve this issue.
Regards,
Madhav Lohar
We are developing ESP32-Rainmaker based device.
In this device it will have two lamps (relay) and two switch to control lamps.
All functions are working very well if lamp load is not connected to device. If lamp load is connected and switch is operated for 10 to 20 times then switches stops working. In this condition Relays (Lamp load) can be controlled through mobile application [write_cb()]
After debugging it seems that callback function is not getting executed when problem arises. I tried to re-initialise iot_buttons with the help of iot_button_delete(), iot_button_create() and iot_button_set_evt_cb() functions, still it is not working / get recovered.
Please let me know how to resolve this issue.
Regards,
Madhav Lohar