Your wish is my command - you need to handle errors, etc.
(Alan, you may wish to put this on your unofficial KnowledgeBase)
/*****************************************************************************
* Serial Out: Print to the Serial Port *
*****************************************************************************/
static void SerialPrint(void)
{
Err error;
UInt refno;
UInt port = 0;
ULong baud = 2400;
ULong size;
error = SysLibFind("Serial Library",&refno);
if (error == 0)
{
error = SerOpen(refno,port,baud);
}
if (error == 0)
{
size = SerSend(refno,&dbData,StrLen(dbData),&error);
error = SerSendWait(refno,-1);
error = SerClose(refno);
}
}
Regards,
Ray
george williams wrote:
> >
> >I don't speak for palm, and don't blame me or them for anything that
> >happens, but I use the serial port for lots of things I am not supposed to
> >(MIDI, engine controller diagnostic ports, etc.), so I have some ideas :).
> >
>
> Hey, sounds like you've already written a simple
> generic, serial "terminal" app for the Palm. Can I
> have the src, or has someone else made such a
> thing? I know its simple, but if someone's already
> done the hard work...
>
> gw.