Shop OBEX P1 Docs P2 Docs Learn Events
How do I send a null terminator? — Parallax Forums

How do I send a null terminator?

FranklinFranklin Posts: 4,747
edited 2011-07-13 17:36 in Propeller 1
How do I send a null terminator in spin? I have a web page being generated by an Arduino that takes a serial buffer written to by a prop and I can't seem to get a terminator on the data sent. It may be on the receiving end but I can't find where in the manual it discusses this. Thanks for the help.

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2011-07-13 17:36
    You will have to send it as a separate character using the serial transmitter's tx or out method. If you try to send it using any of the available str methods, it will send everything up to but not including the zero.

    -Phil
Sign In or Register to comment.