' **********************************************************************
' * Script name:   FTP communication                                   *
' * Description:   The device will connect ot the FTP server an get    *
' *                information from it                                 *
' * Responsible:   Ramiro Sanchez                                      *
' * Date:          03/12/2011                                          *
' **********************************************************************
' --------------------------------------------------------------------
' General configuration
' --------------------------------------------------------------------
AT&F
AT+GSN
AT$PKG?
AT$MDMID?
at+cgatt=0
at+cgdcont=1,"IP","proxy"
at$friend=1,1,"209.42.60.137", 1735,3
at$udpapi=,1720


AT$FTPCFG="209.42.60.137",21,"fota","f0ta-user"
' use the following command
'AT$ftpopen
'at$ftpdir
'at$ftpclose
'at$fss
'at$ftpget

at+cgatt=1
at$areg=2

at&w
