페이지 선택
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in pages

HTTP(S)-GET Exercise

Practice communication between server and client using HTTP GET method with LTE-M/CAT-M1 module.

 

 

 

 

 

 

2. HTTP-GET → SIM7000 & SIM7070, SIM7080, SIM7090

 

NO Command Response 설명
1 PDP Context 설정    
2 AT+SHCONF=”URL”,”http://httpbin.org” OK Set up server URL
  AT+SHCONF=”BODYLEN”,1024 OK

Set HTTP body length,

for range of max body length

3 AT+SHCONF=”HEADERLEN”,350 OK

Set HTTP head length,

for range of max head length

  AT+SHCONN OK Connect to server
  AT+SHSTATE?

+SHSTATE: 1

OK

Get HTTP status
4 AT+SHCHEAD OK

Clear HTTP header,

because of http header is appended

  AT+SHAHEAD=”Accept”,”*/*” OK Add header content
  AT+SHAHEAD=”User-Agent”,”curl/7.47.0″ OK Add header content
  AT+SHAHEAD=”Cache-control”,”no-cache” OK Add header content
  AT+SHAHEAD=”Connection”,”keep-alive” OK Add header content
5 AT+SHAHEAD=”Accept”,”*/*” OK Add header content
       
6 AT+SHREQ=”/get?user=jack&password=123″,1

OK

+SHREQ: “GET”,200,319

Set request type is GET.
AT+SHREAD=0,319

OK

+SHREAD: 319
{
“args”: {
“password”: “123”,
“user”: “jack”
},
“headers”: {
“Accept”: “*/*”,
“Content-Length”: “0”,
“Host”: “httpbin.org”,
“X-Amzn-Trace-Id”: “Root=1-647c471b-179af8e0324da60d7fd1d1a8”
},
“origin”: “193.181.246.191”,
“url”: “http://httpbin.org/get?user=jack&password=123”
}

 
6.1 AT+SHDISC OK  

 

 

 

 

 

Adsense

 

 WiFi IoT Module

 

www.mxchip.com

 

 

 Bluetooth Module

www.feasycom.com

 

 

 5G/LTE/CAT-M1/NB-IoT

 

www.simcom.com

 

Viewed Page List