<< TIME_SAMPLE | Arduino toolbox | cmd_analog_in >>

Arduino toolbox >> Arduino toolbox > close_serial

# close_serial

Command to close the serial port which is connected to Arduino

### Calling Sequence

    res=close_serial(nHandle)

### Parameters

nHandle :

  Board number, reserved for future use. For this version, any number would do

res :

  0 if the connection is successful, else the connection fail

### Description

It is important to close the serial port after use, else the port would be busy and restart of Scilab might required to connect to it again.

### Examples

    ok = open_serial(1,9,115200)
    close_serial(1)

### See also

- open_serial

### Authors

- Bruno JOFRET

Report an issue
<< TIME_SAMPLE | Arduino toolbox | cmd_analog_in >>