15 http get (polling mode) – Siemens Brodersen MC55 AT User Manual
Page 265
MC55_ATC_V04.00
Page 265 of 475
3/17/06
Confidential / Released
10.11.15
HTTP GET (Polling Mode)
at^sisi?
^SISI: 1,6,0,180,0,0
The command response indicates that HTTP service
is in state "6" (Down) and that 180 bytes have been
sent.
OK
at^sise=1
Check error status of service profile 1.
^SISE: 1,0
The command response confirms that no error
occurred.
OK
at^sisc=1
Close the service.
OK
at^siss=0,srvType,"Http"
Select service type HTTP.
OK
at^siss=0,conId,1
Select connection profile 1.
OK
at^siss=0,hcMethod,0
OK
at^siss=0,address,http://192.168.1.4/
OK
at^siso=0
OK
at^sisr=0,1500
Start reading data in polling mode.
^SISR: 0, 1264
...DATA...
OK
at^sisr=0,1500
^SISR: 0, 1500
...DATA...
OK
at^sisr=0,1500
^SISR: 0, 602
...DATA...
OK
at^sisr=0,1500
Again, try to read 1500 bytes.
^SISR: 0, -2
Nor more data to read, i.e. the service has finished.
OK
at^sisi?
^SISI: 0,6,0,3366,0,0
The command response indicates that the HTTP
service is in state "6" (Down) and that 3366 bytes
have been read.
OK
at^sise=0
Check error status of service profile 0.
^SISE: 0,0
The command response confirms that no error
occurred.
OK
at^sisc=0
Close the service.
OK