lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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