' **********************************************************************
' * Script name:   Communication_TCP                                   *
' * Description:   The device sends the tcp messages to the server     *
' *                with input 1 in low and every timer 1               *
' * Responsible:   Ramiro Sanchez                                      *
' * Date:          05/21/2008                                          *
' **********************************************************************
' --------------------------------------------------------------------
' General configuration
' --------------------------------------------------------------------
AT&F
AT+GSN
AT$PKG?
AT$MDMID?
at+cgatt=0
at+cgdcont=1,"IP","internet3.voicestream.com"
at$friend=1,1,"209.42.60.137", 1735,3
at$udpapi=,1720
at$TCPAPI=1


' --------------------------------------------------------------------
' Send tcp messajes to the server with input one
' --------------------------------------------------------------------
at$event=10,0,0,0,0
at$event=10,3,52,10,3674318
at$event=10,3,60,10,3674318

' --------------------------------------------------------------------
'send tcp messajes to all server defined every x seconds defined with AT$EVTIM1
' --------------------------------------------------------------------
AT$Evtim1=0
at$event=12,1,12,1,1
at$event=12,3,52,12,3674318
at$event=12,3,60,12,3674318

at+cgatt=1

at$areg=2

at&w

