bool SetUARTRate(int, string)
Sets the device baud rate.
Security
Trust Level Required: High Trust
Parameters
Name | Description |
baudrate |
int The baud rate to use. Must be one of: 9600, 38400, 115200, 230400, 460800, or 9215600 |
deviceName |
(Optional) string The name of the device to perform an operation on. |
Return
If true, the baud rate was successfully set. Otherwise, false.
Examples
if(!KioOmronHVC.SetUARTRate(9600))
alert('Failed to set baud rate!');
Requirements
KioWare for Windows version 8.16 or greater.