Sometimes the network may not be available, but I don't want to loose data then. Therefore I am thinking of saving the data locally, and then check if the system is online. When online, to send the data again.
But I am not sure HOW to check if the system is online. Thanks