Sierra Wireless WISMO218 User Manual Page 61

  • Download
  • Add to my manuals
  • Print
  • Page
    / 79
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 60
WA_DEV_W228_UGD_002 Rev 003 Page 61 of 78
WISMO228 TCP/IP AT Commands
Manual
TCP Client Socket
Using GPRS Bearer
AT+WIPCFG=1
OK
//start IP stack
AT+WIPBR=1,6
OK
//open GPRS bearer
AT+WIPBR=2,6,11,APN name
OK
//set APN name of GPRS bearer
AT+WIPBR=2,6,0,user name
OK
//set user name
AT+WIPBR=2,6,1,passwd
OK
//set password
AT+WIPBR=4,6,0
OK
//start GPRS bearer
AT+WIPCREATE=2,1,”ip addr”,80
//create a TCP client towards peer IP device @ “ip addr”,
//port 80.
OK
//all parameters and iP stack behavior are OK.
+WIPREADY: 2,1
//unsolicited: the TCP client socket is connected to the
//peer
AT+WIPDATA=2,1,1
CONNECT
//exchange data on socket idx 1:
//read, write
+++
//switch to AT mode
OK
AT+WIPCLOSE=2,1
OK
//close the TCP client socket index 1
Page view 60
1 2 ... 56 57 58 59 60 61 62 63 64 65 66 ... 78 79

Comments to this Manuals

No comments