i am using the onboard esp32 c3 reset button as a trigger for the app button. When the reset button on esp32 is clicked, it stops sending data and i want at that time for it to automatically detect that no data has received and for the button click to execute immidiately. Here in my code its the sendloc button that will be executed automatically if no data is received
Why not just use this block?
1 Like
can you please tell me how do i check that? Like is it possible that even when i hold the reset button and the data stops, but the esp32 is still connected?
There's a clock component in the sensor drawer.
Keep track of the latest SystemTime when data arrived in a global variable.
Have a clock timer subtract that from the current system time to get milliseconds from the last data arrival
If it exceeds your threshold, raise the alarm.