Regular API
function
simSerialClose / sim.serialClose
Description
Closes a serial port (RS-232). See also
sim.serialOpen
.
C synopsis
simInt simSerialClose(simInt portHandle)
C parameters
portHandle
: the handle returned by the
simSerialOpen
function
C return value
-1 if operation was not successful. In a future release, a more differentiated return value might be available
Lua synopsis
number result=sim.serialClose(number portHandle)
Lua parameters
Same as C-function
Lua return values
Same as C-function
All regular API functions on one page