AT Command

Description

AT+HTTPTERM terminates the HTTP session.


Support

Simcom Module Tutorial

Examples

AT+HTTPTERM
OK

KeywordsAT+HTTPTERM syntax, examples, parameters, error, input, response.


IoT Cloud Tester - Learn how to develop and test your end-to-end IoT solution on Goolge Cloud.
  • No hardware - Create virtual gateways and devices
  • Create custom data model for the devices
  • Auto-generate data for the devices
  • Send device data to Google Cloud using MQTT
  • Monitor Pub/Sub messages
  • Process device data with your webservice
   

AT+HTTPTERM function is used terminate the HTTP ser for Simcom modules.
With Online AT Command Tester tool, you can test Simcom HTTP feature.

Send batch of AT commands in the script mode,

//Check the registration status
AT+CREG?

//Check whether bearer 1 is open.
AT+SAPBR=2,1

//Enable bearer 1
AT+SAPBR=1,1

//Wait untial bearer is activated
WAIT=6

//Initialize HTTP service
AT+HTTPINIT

//Set the HTTP URL
AT+HTTPPARA="URL","https://www.m2msupport.net/m2msupport/http_get_test.php"

//Set the context ID
AT+HTTPPARA="CID",1

//Set up the HTTP action
AT+HTTPACTION=0

//Do a HTTP read
AT+HTTPREAD

//Wait for the HTTP response
WAIT=6

//Terminate the HTTP service
AT+HTTPTERM