Hi @all!
I'm about to write a class for serial communication on Win32 and Linux which
provides a method called "talk" to send something over the serial line,
wait for
the answer and returns it. My problem is, that I don't know how long the
answer
will be (ok max 260 bytes but most answers are much
On Mon, Sep 13, 2010 at 6:10 PM, André da Palma wrote:
> Last year i was working with serial communication as well and there is
> already a library for python, i guess it's pySerial. Try to google it,
> perhaps
it can be useful for you.
Yes you're totally right! And that's the package im using
On Mon, Sep 13, 2010 at 8:33 PM, Adam Bark 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 impleme
Hi @all,
within diveintopython I often found a for-statement like this:
f for f in bla:
print f
So what actually is the first f for ... is it just to declare f before
starting the for loop? I can't find any information on python.org
and it's hard to google this kinda stuff.
- Markus
--
--
On Mon, Jul 13, 2009 at 2:08 PM, Dave Angel wrote:
> Markus Hubig wrote:
>
>> Hi @all,
>>
>> within diveintopython I often found a for-statement like this:
>>
>> f for f in bla:
>>print f
>>
>> So what actually is the first f for ... is i