Hi, 
I made some changes for my code, (which I posted about 2hrs ago).
I still tried to receive 25 bytes from another device. However, it still
won't work correctly. Now, there is some strange thing happening. When I
connect palm pilot with device where I need receive the data from. It put
number "1" in the field instead of correct character.  I don't understand at
all.
Anyone can help me out with it??
I will highly appreciated any help.

I attach my code here:

static Boolean Get_Buffer_Data (unsigned char buffer_num,unsigned int
num_bytes , void * buf )
{
        Err serror;
        unsigned char buffer_sent;
        char* bufchar;
        num_bytes = 25;

        SerReceive(serial_lib,buf,num_bytes,SERIAL_TIMEOUT,&serror);
         SAMPLE_READY_FLAG = 1;
        
          StrPrintF(reading_buf,"%u",x);
         fieldptr_ldu_ch3v = FrmGetObjectPtr(FrmGetActiveForm(),
FrmGetObjectIndex(FrmGetActiveForm(),fieldID_ldu_ch3v));
         FldSetTextPtr(fieldptr_ldu_ch3v, reading_buf);
        FldRecalculateField(fieldptr_ldu_ch3v, true);
    
           return 1;
}

allen

Reply via email to