Working with GPRS
You can make use of GPRS to access REST API endpoints, just as you did using Wi-Fi. However, there is one difference – you need to ensure that the SIM has an active data subscription. You will also need to find the Access Point Name (APN) of your telecom provider, as well as the credentials for connecting. This is normally published somewhere on the provider’s website.
The SIM in our microcontroller can’t communicate with the server in our local network. We will need to communicate with a server that is publicly hosted. Let’s use https://webhook.site for this purpose. This will let us monitor the data we send from the Arduino without having to write a custom API to receive the data. This is useful to quickly debug what we send from our microcontrollers. Visit the site and search for the connection URL, which looks similar to the following.
Figure 9.7 – The webhook.site unique URL
You will need to...