Shop OBEX P1 Docs P2 Docs Learn Events
Timeout receiving serial data — Parallax Forums

Timeout receiving serial data

jnoguesjnogues Posts: 25
edited 2010-03-03 06:57 in Propeller 1
Hi,

Is possible add a timeout receiving a caracter or a string with the PST object?
If not, what is the object than I need?

Regards,

Jaume Nogues
Barcelona
Spain

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2010-03-02 20:53
    The FullDuplexSerial object and others have an "rxtime" method that provides for a timeout. You can cut and paste the "rxtime" method from FullDuplexSerial to PST and it should work there since it calls "rxcheck" which also is in PST.
  • jnoguesjnogues Posts: 25
    edited 2010-03-03 06:57
    Thanks Mike!!
Sign In or Register to comment.