I want to update data to thingspeak using my raspberry pi.so that, I run my python code and I set it to run at reboot using Crontab. while its running at the background my wifi connection gets down and so the script stops sending data to cloud, even after the network comes up.
Is there any way to restart the .py file when network gets down or up automatically.