Difference between revisions of "SerialConnection.Reset"

From Xojo Documentation

(Created page with "N/A")
 
 
Line 1: Line 1:
N/A
+
{{MethodBox
 +
| name=Reset
 +
| owner=[[SerialConnection]]
 +
| ownertype=class
 +
| scope=public
 +
| platform=all
 +
| newinversion=2019r2
 +
}}
 +
{{Description
 +
|text = Resets the connection's baud and byte format. }}
 +
 
 +
==Notes==
 +
 
 +
The serial connection must be open for this method to function.
 +
 
 +
Changes to the serial device are queued so that you can modify multiple properties of it without them all taking effect immediately. For instance, you can set the baud, parity and stop bits as one operation instead of three. The same thing applies to the line state properties. Once you've made all your changes, you need to call .Reset on the serial device to reset the device to the new settings.
 +
 
 +
==Example==
 +
 
 +
<rbcode>
 +
SerialConnection1.Reset
 +
</rbcode>

Latest revision as of 00:32, 28 June 2019

Method

SerialConnection.Reset()

New in 2019r2

Supported for all project types and targets.

Resets the connection's baud and byte format.

Notes

The serial connection must be open for this method to function.

Changes to the serial device are queued so that you can modify multiple properties of it without them all taking effect immediately. For instance, you can set the baud, parity and stop bits as one operation instead of three. The same thing applies to the line state properties. Once you've made all your changes, you need to call .Reset on the serial device to reset the device to the new settings.

Example

SerialConnection1.Reset