Serial.Close

From Xojo Documentation

Method

Serial.Close()

Supported for all project types and targets.

Closes the serial port.