Properties, Status = waitforevent ( ), Status = write ( data ) – Casio Naurtech CETerm Ver.5.5 Scripting Guide User Manual
Page 72: Status = writebyte ( bytevalue ), Status = writenull ( nullcount ), Status = writeurgent ( bytevalue )

N
AURTECH
W
EB
B
ROWSER AND
T
ERMINAL
E
MULATION FOR
W
INDOWS
CE
AND
W
INDOWS
M
OBILE
CETerm Scripting Guide
Page 72
status = WaitForEvent ( )
Enable an event listener for the port. The listener waits for events that are
specified in the property EventMask. If the event is signaled by the port, the
event handler OnSerialPortEvent is invoked. The event handler is invoked only
once for each call of WaitForEvent, but the handler parameters may indicate
multiple event conditions. Return 0 on success, non-zero for failure.
status = Write ( data )
Write the data string to the port. Data are converted from wide characters to
bytes with wcstombs using the current locale. Return number of bytes written
for success, negative value for failure. Use the SerialPort property LastError
to get additional error information.
status = WriteByte ( byteValue )
Write a single byte with integer value byteValue to the port. Return 1 for
success, negative value for failure. Use the SerialPort property LastError to
get additional error information.
status = WriteNULL ( nullCount )
Write NULL (0) bytes to the port. Write nullCount NULL bytes to the port. Return
number of bytes written for success, negative value for failure. Use the
SerialPort property LastError to get additional error information. Where
needed, this method may be used to “wakeup” an attached device prior to
sending commands.
status = WriteUrgent ( byteValue )
Write a single byte with integer value byteValue to the port. This places the byte
ahead of any pending data in the output buffer. Return 1 for success, negative
value 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 “transmitcommchar”.
Properties
Many of the SerialPort properties correspond directly to Windows serial port
configuration values. More details can be found by searching