Intermec 5055 Reference Guide

Page of 216
im_xm_transmit_file
5-79
5
im_xm_transmit_file
Purpose:
This function sets the 5055 to transmit a file to the host using XMODEM protocol.
Syntax:
#include "im5055.h"
IM_STATUS im_xm_transmit_file
    (IM_UCHAR far 
*filename
,
     IM_COM_PORT 
port_id
)
IN Parameters:
filename    Far pointer to IM_CHAR and is the filename in the 5055. The 5055 filename
has the format drive:filename.
port_id    Communications port:
IM_COM1    COM1 input.
IM_COM2    COM2 input.
OUT Parameters:
None.
Return Value:
This function returns one of these codes:
IM_SUCCESS    Successful.
IM_INVALID_PORT    The port is unknown.
Notes:
The host must be set up to receive a file (using XMODEM protocol) from the 5055 for
this function to execute successfully.
See Also:
im_xm_receive_file
Example
See example for im_xm_receive_file.