Multitech MTS2BTA-R Manual de usuario Pagina 51

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 88
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 50
Chapter 2 – AT Commands
Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360H) 51
FTP Push/Pull Commands
FTPPUSH FTP Push
This command transfers a file to the current FTP directory.
Format: ATFTPPUSH,<File Name>,<File Extension>,<File Size>,<Trace>
Parameters:
File Name: 64 characters MAX
File Extension: 4 characters MAX (Ex: .txt,.jpg,.html)
File Size: Size of file in bytes, 4294967295 MAX
Trace:
0 = Do not output transfer progress trace
1 = Output transfer progress trace
Return Parameters: <Bytes Sent>
EXAMPLE WITHOUT TRACE ENABLED:
TYPE: ATFTPPUSH,Test,txt,100,0<cr>
REPLY: <cr_lf>OK<cr_lf>
TYPE: <100 Bytes of Data>
REPLY: <cr_lf>PUSH COMPLETE<cr_lf>
OR
<cr_lf>ERROR<cr_lf>
EXAMPLE WITH TRACE ENABLED:
TYPE: ATFTPPUSH,Test,txt,100,1<cr>
REPLY: <cr_lf>OK<cr_lf>
TYPE: <100 Bytes of Data>
REPLY: <cr_lf>SENT,00000001/00000064<cr_lf>
<cr_lf>SENT,00000051/00000064<cr_lf>
<cr_lf>PUSH COMPLETE<cr_lf>
OR
<cr_lf>ERROR<cr_lf>
Notes: If the name of the file matches an existing file in the current FTP
directory it will be overwritten without warning.
FTPPULL FTP Pull
This command reads a file from the current FTP directory.
Format: ATFTPPULL,<File Name>,<File Extension>
Parameters:
File Name: 64 characters MAX
File Extension: 4 characters MAX (Ex: .txt,.jpg,.html)
Return Parameters: <File Size>,<File Data>
EXAMPLE:
TYPE: ATFTPPULL,Test,txt<cr>
REPLY: <cr_lf>OK<cr_lf>
cr_lf>File,001E,012345678901234567890123456789<cr_lf>
<cr_lf>PULL COMPLETE<cr_lf>
OR
<cr_lf>ERROR<cr_lf>
Vista de pagina 50
1 2 ... 46 47 48 49 50 51 52 53 54 55 56 ... 87 88

Comentarios a estos manuales

Sin comentarios