Event for lost data connection
I need my Android phone to warn me (eg by playing a tune) when it loses internet connectivity. As far as I can tell, such an event has not been defined in Tasker. Am I right? Could you add such an even to the app?
As far as I can tell, it should not be hard to implement such an event. Source: https://medium.com/@veniamin.vynohradov/monitoring-internet-connection-state-in-android-da7ad915b5e5.
One useful scenario - Why I need it:
I do some basic surveying using SparkFun Surveyor. In order to give very precise results it must connect to the internet to retrieve correction data. This is called RTK/NTRIP. I set up my phone as a hotspot and have set up the SparkFun Surveyor to connect via this hotspot.
However, sometimes my phone loses connection momentarily, which causes the App / Surveyor to simply lose accuracy and record data with 1-3m accuracy, instead of 1-10cm accuracy. And the app I'm using does not warn me of this (and there are reasons why I need to use exactly this surveying app).
I want to set up Tasker to notify me that internet connection was lost (whether its wifi or via 4G/5G or some other issue) by playin a tune. Then I can pause my work until I know the network connection is back.
Sincerely