I would like send data through ir communication.

I used the code:

OpenRS(Int intPort, Long lngVel, Int intBits, Int intPAR, Int intStop)

{

        errE = SrmOpen (serPortIrPort, lngVel, &uintPortId);


        SrmControl(uintPortId, srmCtlIrDAEnable, 0, 0 );


        SrmControl(uintPortId, srmCtlRxEnable, 0, 0 );
        
}


Err SendData(Char *chrBuffer, ULong ulngSize)
{
        SrmControl(uintPortId, srmCtlRxDisable, 0, 0 );

        errE = SrmSendFlush(uintPortId);
        

        SrmSend (uintPortId, chrBuffer, ulngSize, &errE);


        errE = SrmSendWait(uintPortId);

        SrmControl(uintPortId, srmCtlRxEnable, 0, 0 );

        
        return 0;
}



This code worked in palmVx,  but not in tungsten E.

What should I do to use serPortIrPOrt in tungsten e?

thanks
Emiliana



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/

Reply via email to