Data = read ( maxcount ), Data = readbyte ( ), Data = readtillbyte ( maxcount, bytevalue ) – Casio Naurtech CETerm Ver.5.5 Scripting Guide User Manual

Page 71: Status = setbreak ( )

Advertising
background image

N

AURTECH

W

EB

B

ROWSER AND

T

ERMINAL

E

MULATION FOR

W

INDOWS

CE

AND

W

INDOWS

M

OBILE




CETerm Scripting Guide

Page 71


data = Read ( maxCount )

Read up to maxCount bytes from the port. Return data as a string. Return null if
no data or error. This method blocks until the maximum bytes are read or the
read timeout expires. Data are converted from bytes to a wide character string
by mbstowcs using the current locale. Use the SerialPort property LastError
to get additional error information.

data = ReadByte ( )

Read a single byte from the port. Return data as an integer value between 0 and
255. Return negative number if failure; -1

– failure, -2 – timeout. This method

blocks until the byte is read or the read timeout expires. Use the SerialPort
property LastError to get additional error information.

data = ReadTillByte ( maxCount, byteValue )

Read up to maxCount bytes from the port. Return data as a string. Return null if
no data or error. This method blocks until the maximum bytes are read, or a byte
with the specified integer value is read, or the read timeout expires. The
suggested technique to use ReadTillByte is to call it after the EV_RXFLAG event
is signaled through OnSerialPortEvent with desired character as the event
character. Use the SerialPort property LastError to get additional error
information.

status = SetBreak ( )

Set the break condition on the port. Suspends character transmissions and
enters the break state. Return 0 on success, non-zero for failure. Use the
SerialPort property LastError to get additional error information.

status = SetQueueSizes ( inputQueueSize, outputQueueSize )

Set the size of input and output queues. Return 0 on success, non-zero for
failure. Use the SerialPort property LastError to get additional error
information. More details can be found by searching msdn.microsoft.com with
the keyword “setupcomm”.

Advertising
This manual is related to the following products: