[Tutor] Converting a string to a byte array

Phil phil_lor at bigpond.com
Mon Sep 25 19:21:31 EDT 2017


On 26/09/17 07:02, Cameron Simpson wrote:
> 
> Just to this. If your serial file handle is a normal buffered one, you 
> may also need to call .flush(). When you run from the command line as 
> "python3 mycode.py" is done automatically at programme exit. In the IDE, 
> the programme has not exited, so your bytes may be lurking in the 
> buffer, unsent.

Thank you Cameron, that sounds like a logical explanation. I'll try it.

-- 
Regards,
Phil


More information about the Tutor mailing list