I am trying to develop code to send the locations obtained from my A9G module to my database. I have developed an endpoint that receives the latitude and longitude and inserts them into my database. However, I am unsure how to send these locations via HTTP to my endpoint. I am using an Arduino Uno R3 and an A9G module, which has a SIM card inserted.
I would greatly appreciate it if anyone could help me and provide some working code or assist me in this matter. Thank you!
To clarify, I want to send the GPS location data to an endpoint I've set up, which then handles storing the data in a database. My goal is to send this data as a POST request, where the body should include { "location": { "latitude": XXXX, "longitude": XXXX } }.
The A9G module is responsible for retrieving GPS data, and I'm already able to capture and display this data in the serial monitor. However, I'm uncertain about how to send it to my endpoint via HTTP. I’m using a SIM card in the module to establish connectivity.
I hope this clarifies things a bit more. Thank you for any guidance on this!