psSerial: how to write a single byte value to the serial port?
Grant Edwards
grante at visi.com
Wed Nov 17 22:44:57 EST 2004
On 2004-11-18, SoftwareTester <mr_ravi_patil at yahoo.com> wrote:
>> >>> type(byte)
>> <type 'str'>
>>
>> Its a string as well.
>
> I am concerned because I do not know the effect of writing null
> character to the device connected to the serial byte.
I don't understand what you're concerned about. Python doesn't
use null-delimited strings.
> I wish to send a single byte to the serial port and nothing more.
In Python, a "single byte" is just a string of length one.
--
Grant Edwards grante Yow! Eisenhower!! Your
at mimeograph machine upsets
visi.com my stomach!!
More information about the Python-list
mailing list