' **********************************************************************
' * Script name:   Battery duration                                    *
' * Description:   The device sends the UDP messages to the server     *
' *                every seconds defined in th timer 1                 *
' * Responsible:   Ramiro Sanchez                                      *
' * Date:          03/09/2011                                          *
' **********************************************************************

' --------------------------------------------------------------------
' 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", 1720
at$udpapi=,1720


at$evtim1=120
at$event=10,1,12,1,1
at$event=10,3,40,70,3674318
at$event=10,3,60,70,3674318

at+cgatt=1

at$areg=2

at&w

