
ī
FTPīATīCOMMANDS
ī
HSPA+īATīCommandsīReferenceīGuideī 252
ī
OKī
Whereī<sentbytes>īareītheīnumberīofīsentībytes.ī
Notesī
ī <sentbytes>īcanībeīlessīthanī<bytestosend>ī
ī Ifīdataīsendingīfailsīforīsomeīreason,īanīerrorīcodeīisīreported.ī
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
ī
//īHereīdataīsocketīwillīstayīopened,ībutīinterfaceīisīavailableī(commandīmode)ī
ī
AT#FTPAPPEXT=Size
>ā¦īwriteīhereītheībinaryīdata.īAsīsoonīSizeībyteīareīwritten,īdataīareīsentīandīOKīisīreturnedī
#FTPAPPEXT: <SentBytes>
OK
ā¦ā¦ā¦
ī
//īLastī#FTPAPPEXTīwillīcloseītheīdataīsocket,ībecauseīsecondī(optional)īparameterīhasīthisīmeaning:ī
ī
AT#FTPAPPEXT=Size,1
>ā¦writeītheībinaryīdata.īAsīsoonīSizeībyteīisīwritten,īdataīisīsentīandīOKīisīreturned.ī
#FTPAPPEXT: <SentBytes>
OK
ī
//īIfītheīuserīhasītoīreopenītheīdataīportītoīsendīanotherī(orīappendītoītheīsame)īfile,īheīcanīrestartīwithītheīFTPPUT(orī
FTPAPP.)īī
//ThenīFTPAPPEXT,ā¦ītoīsendītheīdataīchunksīonītheīreopenedīdataīport.ī
ī
Commenti su questo manuale