[Tutor] Serial communication ...

Markus Hubig mhubig at gmail.com
Mon Sep 13 21:02:37 CEST 2010


On Mon, Sep 13, 2010 at 8:33 PM, Adam Bark <adam.jtm30 at gmail.com> wrote:

> Ideally you would send a specific ending packet and you read one byte at a
> time until the
>
right sequence comes up. Alternatively you could have the first byte as a
> length indicator.
>

Oh my dear! You're damn right! The protocol im implementing is fixed so I
can't
at an ending packet, but every message contains an length field I can use
for this!!
How could I miss this?!

Thank you, Markus

-- 
Can't read my mail? Just don't hold it that way!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100913/78676db7/attachment.html>


More information about the Tutor mailing list