' **********************************************************************
' * Script name:   Input as Output                                     *
' * Description:   Activate and deactivate the output every 3 seconds  *
' * Responsible:   Ramiro Sanchez                                      *
' * Date:          03/15/2011                                          *
' **********************************************************************
' --------------------------------------------------------------------
' General configuration
' --------------------------------------------------------------------
at&f
at+cgsn
at$pkg
at+cgmr
at+cgatt=0
at+cgdcont=1,"IP","internet3.voicestream.com"
at$UDpAPI=,1720
at$Friend=1,1,"209.42.60.137"

' Use the command at$gpio1=0 to activate the output
' Use the command at$gpio1=1 to deactivate the output

AT$IOCFG=00010001

at+cgatt=1
at$reg=2

at&w

