Status = cancelwaitforevent ( ), Status = clearbreak ( ), Status = clearerror ( ) – Casio Naurtech CETerm Ver.5.5 Scripting Guide User Manual

Page 70: Status = close ( ), Status = open ( access ), Status = purgequeues ( mode )

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 70


status = CancelWaitForEvent ( )

Cancel the active event listener for the port. If canceled, changes in port status
will not be reported through the event handler OnSerialPortEvent. Return 0 on
success, non-zero for failure.

status = ClearBreak ( )

Clear the break condition on the port. Return 0 on success, non-zero for failure.
Use the SerialPort property LastError to get additional error information.

status = ClearError ( )

Clear the error condition and re-enable I/O operations. Return information about
the error condition and current port status as a JavaScript literal object. Return
null if the port is not open or other failure. More details can be found by
searching msdn.microsoft.com with the keyword “clearcommerror”.

The general format of the status is:

{"errorType":1, "CTSHold":false, "DSRHold":false,
"RLSDHold":false, "XOFFHold":false, "XOFFSent":false,
"EOF":false, "TXIM":false, "inputQueue":0, "outputQueue":0}

status = Close ( )

Close the serial port. Any active event listener is canceled. Return 0 on
success, non-zero for failure. Use the SerialPort property LastError to get
additional error information.

status = Open ( access )

Open the serial port for communications. The access parameter code specifies
read and/or write access. Return 0 on success, non-zero for failure. Use the
SerialPort property LastError to get additional error information. See
Appendix 4 for access definitions.

status = PurgeQueues ( mode )

Discard content from input and output queues. Return 0 on success, non-zero
for failure. Use the SerialPort property LastError to get additional error
information. See Appendix 4 for mode definitions.

Advertising
This manual is related to the following products: