/**
* set the baud rate used for communication; if the connection is
* already established, the baud rate will be changed on the fly
*
* @param baudRate the new baud rate
* @throws UnsupportedCommOperationException
*/
public void setBaudRate(int baudRate) throws UnsupportedCommOperationException
{
this.baudRate= baudRate;
if (isConnected()) {
port.setSerialPortParams(
baudRate,
dataBits,
stopBits,
paritiyFlags);
}
}
StreamCommand.java 文件源码
java
阅读 65
收藏 0
点赞 0
评论 0
项目:jaer
作者:
评论列表
文章目录