I would like to use the Raspberry PI Pico to monitor exchange rates for crytpo currencies and inform me via SMS (using a SIM800l module) when certain prices are exceeded or fallen short of. I successfully connected the Pico to an ESP-01S, following this tutorial. It can controlled through AT commands (e.g. I can retrieve the IP address).
I want to use Micropython. But how do I send the following request using AT commands?
import urequests.urequests as requests
url = 'https://min-api.cryptocompare.com/data/pricemulti?fsyms=BTC&tsyms=EUR'
price_euro = requests.get(url).json()
I could not find anything helpful on Google.
AT+CWJAP="SSID","password"
), then you can make a connection to your your server (again with AT commands, likeAT+CIPSTART=”TCP”, “server”, port
). Next connect the Pico up to your ESP (you'll have to refer to the data sheet for the exact pins). You should now be able to interface with these pins to send and receive network requests to the API on your server.