<< serial serial openserial >>

serial >> serial > closeserial

closeserial

close the serial port

Syntax

err = closeserial(h)

Parameters

h

string, Tcl handle to the serial port

err

error flag: 0 if closing was successful, -1 otherwise.

Description

Close the serial port channel. Wrapper to the Tcl command close.

Examples

h = openserial(1,"9600,n,8,1")
closeserial(h)

See Also

Contributors

Enrico SEGRE
Aditya SENGUPTA <apsengupta@iitb.ac.in>
Samuel GOUGEON

Bibliography


Report an issue
<< serial serial openserial >>