Specifications
FTPATCOMMANDS
HSPA+ATCommandsReferenceGuide 252
OK
Where<sentbytes>arethenumberofsentbytes.
Notes
<sentbytes>canbelessthan<bytestosend>
Ifdatasendingfailsforsomereason,anerrorcodeisreported.
Examples
AT#FTPOPEN=”IP”,username,password
OK
AT#FTPPUT=<filename>,1 -> the new param 1 means that we open the connection in command
mode
OK
//Heredatasocketwillstayopened,butinterfaceisavailable(commandmode)
AT#FTPAPPEXT=Size
>…writeherethebinarydata.AssoonSizebytearewritten,dataaresentandOKisreturned
#FTPAPPEXT: <SentBytes>
OK
………
//Last#FTPAPPEXTwillclosethedatasocket,becausesecond(optional)parameterhasthismeaning:
AT#FTPAPPEXT=Size,1
>…writethebinarydata.AssoonSizebyteiswritten,dataissentandOKisreturned.
#FTPAPPEXT: <SentBytes>
OK
//Iftheuserhastoreopenthedataporttosendanother(orappendtothesame)file,hecanrestartwiththeFTPPUT(or
FTPAPP.)
//ThenFTPAPPEXT,…tosendthedatachunksonthereopeneddataport.