Search for Router then send information to AWS

Hello!

I am putting together a project where I will attach an accelerometer to my car to record acceleration data. The accelerometer sends serial data to the H7 Portenta, which then records data onto an SD Card on the H7 Portenta Vision shield in a text file.

I have been able to do this first step and have the data written nicely into a txt. file. What I'd like now is for the txt. file to be transmitted to AWS once it comes into range of my houses router. I have looked into options including HTML requests and MQTT, but can't quite work out how best to automate this task. What libraries and communication protocols would you suggest for this task?

No need to wait until you get home. Just make an attempt to connect every 30 seconds or so and deal with the success or fail result.