Page 1 of 1

PostPosted: Thu Feb 15, 2001 2:40 am
by Dave
I'm writing an applet to control some equipment via serial.

I have to send CR terminated strings to the device in question. I can send strings one char at a time, but I don't know how to send a CR. A "\n" not good enough.

Thanks,
Dave Everett

PostPosted: Fri Feb 16, 2001 3:01 am
by s_hart
In ascii, cr is 13 and lf is 10 and your receiver may need cr and lf, so you may need to try

#define ser_cr 13
#define ser_lf 10

sersend( ser_cr );
sersend( ser_lf );

or it might need just ser_lf or just ser_cr.