//Check registration status
AT+CREG?
//Get the configuration of the sockets
AT&K=0
AT#SCFG?
//Check if any socket has been activated
AT#SGACT?
//Activate the socket 1
AT#SGACT=1,1
//Wait for socket activation
WAIT=4
//Dial the socket. Port 80 is TCP connection.
AT#SD=1,0,80,"www.openweathermap.org"
//Wait for the CONNECT message
WAIT=4
//Send the HTTP formatted data
<cr><lf>GET /data/2.5/weather?q=London,uk HTTP/1.1<cr><lf>Host: www.openweathermap.org<cr><lf>Connection:keep-alive<cr><lf>
<cr><lf>