[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Avoiding ASCII conversion in serial communication using luars232
- From: Jay Carlson <nop@...>
- Date: Wed, 3 Sep 2014 09:09:00 -0400
On Sep 3, 2014, at 3:21 AM, Ahmed, Hammad <HAhmed@de.alten.com> wrote:
> As a newbie, I am using luars233 library for serial communication using lua. I need to send data bytes without converting them in ASCII form, but the write function of luars232 is converting the data into ASCII before transmission even if I pass it to the function as a number. Please provide possible assistance. Thank you.
> a=string.char(255, 0, 27)
> =string.byte(a, 1, 3)
255 0 27