15 http get (polling mode), Ac75 at command set – Siemens AC75 User Manual

Page 307

Advertising
background image

AC75 AT Command Set

10.14 Examples of how to Configure and Use Internet Service Profiles

s

AC75_ATC_V01.002

Page 307 of 569

10/30/06

Confidential / Released

10.14.15

HTTP GET (Polling Mode)

^SISW: 1, 0, 0

No further data available, i.e. the service has fin-

ished.

OK

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

Advertising