in the upload state we try to connect to the known networks. If not successful we keep on trying and as such will drain the battery. It is better to add a state to reflect the failure. Stay in the state untill the next measurements are ready to be uploaded